22 #include <linux/sched.h>
23 #include <linux/kernel.h>
26 #include <linux/sysctl.h>
29 #include <asm/processor.h>
30 #include <asm/cputable.h>
32 #include <asm/machdep.h>
36 #ifdef CONFIG_HOTPLUG_CPU
37 #define cpu_should_die() cpu_is_offline(smp_processor_id())
39 #define cpu_should_die() 0
45 static int __init powersave_off(
char *
arg)
51 __setup(
"powersave=off", powersave_off);
61 set_thread_flag(TIF_POLLING_NRFLAG);
63 tick_nohz_idle_enter();
70 clear_thread_flag(TIF_POLLING_NRFLAG);
92 set_thread_flag(TIF_POLLING_NRFLAG);
107 tick_nohz_idle_exit();
122 static ctl_table powersave_nap_ctl_table[]={
126 .maxlen =
sizeof(
int),
132 static ctl_table powersave_nap_sysctl_root[] = {
136 .child = powersave_nap_ctl_table,
142 register_powersave_nap_sysctl(
void)