summaryrefslogtreecommitdiffstats
path: root/sys/sys/systm.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-04-02 01:02:42 +0000
committerjhb <jhb@FreeBSD.org>2015-04-02 01:02:42 +0000
commitb09b758bf25e41249b9253a3a796713405f28b4d (patch)
tree7694f537b30d0bb29bc4821549a8b28e4d2fb4b4 /sys/sys/systm.h
parent5fdf8ec7775f40bbf293206a9670387f9b26b1e2 (diff)
downloadFreeBSD-src-b09b758bf25e41249b9253a3a796713405f28b4d.zip
FreeBSD-src-b09b758bf25e41249b9253a3a796713405f28b4d.tar.gz
MFC 276724:
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
Diffstat (limited to 'sys/sys/systm.h')
-rw-r--r--sys/sys/systm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 006532d..bb0d64f 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -295,8 +295,9 @@ sbintime_t cpu_idleclock(void);
void cpu_activeclock(void);
void cpu_new_callout(int cpu, sbintime_t bt, sbintime_t bt_opt);
void cpu_et_frequency(struct eventtimer *et, uint64_t newfreq);
-extern int cpu_can_deep_sleep;
-extern int cpu_disable_deep_sleep;
+extern int cpu_deepest_sleep;
+extern int cpu_disable_c2_sleep;
+extern int cpu_disable_c3_sleep;
int cr_cansee(struct ucred *u1, struct ucred *u2);
int cr_canseesocket(struct ucred *cred, struct socket *so);
OpenPOWER on IntegriCloud