aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/timetc.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2015-01-05 20:44:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2015-01-05 20:44:44 +0000
commit92597e064b0d9c92229690e9cc9832e0559f4970 (patch)
treeec71cc12df2ca8f19bd299ffa3546e15f67fbb62 /sys/sys/timetc.h
parenta9c218da80c3c79d35b52faeede65603b958385f (diff)
downloadsrc-92597e064b0d9c92229690e9cc9832e0559f4970.tar.gz
src-92597e064b0d9c92229690e9cc9832e0559f4970.zip
On some Intel CPUs with a P-state but not C-state invariant TSC the TSC
may also halt in C2 and not just C3 (it seems that in some cases the BIOS advertises its C3 state as a C2 state in _CST). Just play it safe and disable both C2 and C3 states if a user forces the use of the TSC as the timecounter on such CPUs. PR: 192316 Differential Revision: https://reviews.freebsd.org/D1441 No objection from: jkim MFC after: 1 week
Notes
Notes: svn path=/head/; revision=276724
Diffstat (limited to 'sys/sys/timetc.h')
-rw-r--r--sys/sys/timetc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/timetc.h b/sys/sys/timetc.h
index 48b962f7a61b..e68e3274e5e3 100644
--- a/sys/sys/timetc.h
+++ b/sys/sys/timetc.h
@@ -58,7 +58,7 @@ struct timecounter {
* means "only use at explicit request".
*/
u_int tc_flags;
-#define TC_FLAGS_C3STOP 1 /* Timer dies in C3. */
+#define TC_FLAGS_C2STOP 1 /* Timer dies in C2+. */
#define TC_FLAGS_SUSPEND_SAFE 2 /*
* Timer functional across
* suspend/resume.