powernow.c (181691) | powernow.c (182401) |
---|---|
1/*- 2 * Copyright (c) 2004-2005 Bruno Ducrot 3 * Copyright (c) 2004 FUKUDA Nobuhiko <nfukuda@spa.is.uec.ac.jp> 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 */ 25 26/* 27 * Many thanks to Nate Lawson for his helpful comments on this driver and 28 * to Jung-uk Kim for testing. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004-2005 Bruno Ducrot 3 * Copyright (c) 2004 FUKUDA Nobuhiko <nfukuda@spa.is.uec.ac.jp> 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 */ 25 26/* 27 * Many thanks to Nate Lawson for his helpful comments on this driver and 28 * to Jung-uk Kim for testing. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/i386/cpufreq/powernow.c 181691 2008-08-13 16:09:40Z jhb $"); | 32__FBSDID("$FreeBSD: head/sys/i386/cpufreq/powernow.c 182401 2008-08-28 19:55:18Z jhb $"); |
33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/cpu.h> 37#include <sys/kernel.h> 38#include <sys/malloc.h> 39#include <sys/module.h> 40#include <sys/pcpu.h> --- 937 unchanged lines hidden (view full) --- 978 cpufreq_register(dev); 979 return (0); 980} 981 982static int 983pn_detach(device_t dev) 984{ 985 | 33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/cpu.h> 37#include <sys/kernel.h> 38#include <sys/malloc.h> 39#include <sys/module.h> 40#include <sys/pcpu.h> --- 937 unchanged lines hidden (view full) --- 978 cpufreq_register(dev); 979 return (0); 980} 981 982static int 983pn_detach(device_t dev) 984{ 985 |
986 cpufreq_unregister(dev); 987 return (0); | 986 return (cpufreq_unregister(dev)); |
988} | 987} |