svn commit: r281762 - in head/sys: amd64/amd64 i386/i386
Konstantin Belousov
kib at FreeBSD.org
Mon Apr 20 08:25:56 UTC 2015
Author: kib
Date: Mon Apr 20 08:25:55 2015
New Revision: 281762
URL: https://svnweb.freebsd.org/changeset/base/281762
Log:
Remove duplicate definitions of MWAIT_CX hints. Identical defines in
specialreg.h are enough.
Discussed with: mav
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/amd64/amd64/machdep.c
head/sys/i386/i386/machdep.c
Modified: head/sys/amd64/amd64/machdep.c
==============================================================================
--- head/sys/amd64/amd64/machdep.c Mon Apr 20 03:46:52 2015 (r281761)
+++ head/sys/amd64/amd64/machdep.c Mon Apr 20 08:25:55 2015 (r281762)
@@ -730,15 +730,6 @@ cpu_idle_hlt(sbintime_t sbt)
*state = STATE_RUNNING;
}
-/*
- * MWAIT cpu power states. Lower 4 bits are sub-states.
- */
-#define MWAIT_C0 0xf0
-#define MWAIT_C1 0x00
-#define MWAIT_C2 0x10
-#define MWAIT_C3 0x20
-#define MWAIT_C4 0x30
-
static void
cpu_idle_mwait(sbintime_t sbt)
{
Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c Mon Apr 20 03:46:52 2015 (r281761)
+++ head/sys/i386/i386/machdep.c Mon Apr 20 08:25:55 2015 (r281762)
@@ -1361,15 +1361,6 @@ cpu_idle_hlt(sbintime_t sbt)
}
#endif
-/*
- * MWAIT cpu power states. Lower 4 bits are sub-states.
- */
-#define MWAIT_C0 0xf0
-#define MWAIT_C1 0x00
-#define MWAIT_C2 0x10
-#define MWAIT_C3 0x20
-#define MWAIT_C4 0x30
-
static void
cpu_idle_mwait(sbintime_t sbt)
{
More information about the svn-src-all
mailing list