aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_clocksource.c
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/kern/kern_clocksource.c
parenta9c218da80c3c79d35b52faeede65603b958385f (diff)
downloadsrc-92597e064b0d9c92229690e9cc9832e0559f4970.tar.gz
src-92597e064b0d9c92229690e9cc9832e0559f4970.zip
Notes
Diffstat (limited to 'sys/kern/kern_clocksource.c')
-rw-r--r--sys/kern/kern_clocksource.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/kern_clocksource.c b/sys/kern/kern_clocksource.c
index f203a46b5ad8..4178513fd187 100644
--- a/sys/kern/kern_clocksource.c
+++ b/sys/kern/kern_clocksource.c
@@ -54,8 +54,9 @@ __FBSDID("$FreeBSD$");
#include <machine/cpu.h>
#include <machine/smp.h>
-int cpu_can_deep_sleep = 0; /* C3 state is available. */
-int cpu_disable_deep_sleep = 0; /* Timer dies in C3. */
+int cpu_deepest_sleep = 0; /* Deepest Cx state available. */
+int cpu_disable_c2_sleep = 0; /* Timer dies in C2. */
+int cpu_disable_c3_sleep = 0; /* Timer dies in C3. */
static void setuptimer(void);
static void loadtimer(sbintime_t now, int first);
@@ -605,7 +606,7 @@ cpu_initclocks_bsp(void)
else if (!periodic && (timer->et_flags & ET_FLAGS_ONESHOT) == 0)
periodic = 1;
if (timer->et_flags & ET_FLAGS_C3STOP)
- cpu_disable_deep_sleep++;
+ cpu_disable_c3_sleep++;
/*
* We honor the requested 'hz' value.
@@ -871,9 +872,9 @@ sysctl_kern_eventtimer_timer(SYSCTL_HANDLER_ARGS)
configtimer(0);
et_free(timer);
if (et->et_flags & ET_FLAGS_C3STOP)
- cpu_disable_deep_sleep++;
+ cpu_disable_c3_sleep++;
if (timer->et_flags & ET_FLAGS_C3STOP)
- cpu_disable_deep_sleep--;
+ cpu_disable_c3_sleep--;
periodic = want_periodic;
timer = et;
et_init(timer, timercb, NULL, NULL);