[Midnightbsd-cvs] src [6574] U trunk/sys/x86/cpufreq: tag
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Dec 29 15:27:53 EST 2013
Revision: 6574
http://svnweb.midnightbsd.org/src/?rev=6574
Author: laffer1
Date: 2013-12-29 15:27:53 -0500 (Sun, 29 Dec 2013)
Log Message:
-----------
tag
Modified Paths:
--------------
trunk/sys/x86/cpufreq/est.c
trunk/sys/x86/cpufreq/hwpstate.c
trunk/sys/x86/cpufreq/p4tcc.c
trunk/sys/x86/cpufreq/powernow.c
trunk/sys/x86/cpufreq/smist.c
Property Changed:
----------------
trunk/sys/x86/cpufreq/est.c
trunk/sys/x86/cpufreq/hwpstate.c
trunk/sys/x86/cpufreq/p4tcc.c
trunk/sys/x86/cpufreq/powernow.c
trunk/sys/x86/cpufreq/smist.c
Modified: trunk/sys/x86/cpufreq/est.c
===================================================================
--- trunk/sys/x86/cpufreq/est.c 2013-12-29 20:22:11 UTC (rev 6573)
+++ trunk/sys/x86/cpufreq/est.c 2013-12-29 20:27:53 UTC (rev 6574)
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
#include <sys/param.h>
#include <sys/bus.h>
Property changes on: trunk/sys/x86/cpufreq/est.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1.1.1
\ No newline at end of property
Modified: trunk/sys/x86/cpufreq/hwpstate.c
===================================================================
--- trunk/sys/x86/cpufreq/hwpstate.c 2013-12-29 20:22:11 UTC (rev 6573)
+++ trunk/sys/x86/cpufreq/hwpstate.c 2013-12-29 20:27:53 UTC (rev 6574)
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
#include <sys/param.h>
#include <sys/bus.h>
Property changes on: trunk/sys/x86/cpufreq/hwpstate.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1.1.1
\ No newline at end of property
Modified: trunk/sys/x86/cpufreq/p4tcc.c
===================================================================
--- trunk/sys/x86/cpufreq/p4tcc.c 2013-12-29 20:22:11 UTC (rev 6573)
+++ trunk/sys/x86/cpufreq/p4tcc.c 2013-12-29 20:27:53 UTC (rev 6574)
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
#include <sys/param.h>
#include <sys/systm.h>
@@ -73,6 +73,7 @@
static void p4tcc_identify(driver_t *driver, device_t parent);
static int p4tcc_probe(device_t dev);
static int p4tcc_attach(device_t dev);
+static int p4tcc_detach(device_t dev);
static int p4tcc_settings(device_t dev, struct cf_setting *sets,
int *count);
static int p4tcc_set(device_t dev, const struct cf_setting *set);
@@ -84,6 +85,7 @@
DEVMETHOD(device_identify, p4tcc_identify),
DEVMETHOD(device_probe, p4tcc_probe),
DEVMETHOD(device_attach, p4tcc_attach),
+ DEVMETHOD(device_detach, p4tcc_detach),
/* cpufreq interface */
DEVMETHOD(cpufreq_drv_set, p4tcc_set),
@@ -213,6 +215,24 @@
}
static int
+p4tcc_detach(device_t dev)
+{
+ struct cf_setting set;
+ int error;
+
+ error = cpufreq_unregister(dev);
+ if (error)
+ return (error);
+
+ /*
+ * Before we finish detach, switch to Automatic mode.
+ */
+ set.freq = 10000;
+ p4tcc_set(dev, &set);
+ return(0);
+}
+
+static int
p4tcc_settings(device_t dev, struct cf_setting *sets, int *count)
{
struct p4tcc_softc *sc;
Property changes on: trunk/sys/x86/cpufreq/p4tcc.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1.1.1
\ No newline at end of property
Modified: trunk/sys/x86/cpufreq/powernow.c
===================================================================
--- trunk/sys/x86/cpufreq/powernow.c 2013-12-29 20:22:11 UTC (rev 6573)
+++ trunk/sys/x86/cpufreq/powernow.c 2013-12-29 20:27:53 UTC (rev 6574)
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
#include <sys/param.h>
#include <sys/bus.h>
Property changes on: trunk/sys/x86/cpufreq/powernow.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1.1.1
\ No newline at end of property
Modified: trunk/sys/x86/cpufreq/smist.c
===================================================================
--- trunk/sys/x86/cpufreq/smist.c 2013-12-29 20:22:11 UTC (rev 6573)
+++ trunk/sys/x86/cpufreq/smist.c 2013-12-29 20:27:53 UTC (rev 6574)
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__MBSDID("$MidnightBSD$");
#include <sys/param.h>
#include <sys/bus.h>
Property changes on: trunk/sys/x86/cpufreq/smist.c
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1.1.1
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list