Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276348
b: refs/heads/master
c: e5fd47b
h: refs/heads/master
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk authored and Linus Torvalds committed Dec 3, 2011
1 parent 22e17f5 commit 41c5767
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af968e29acd91ebeb4224e899202c46c93171ecd
refs/heads/master: e5fd47bfab2df0c2184cc0bf4245d8e1bb7724fb
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ extern unsigned long arch_align_stack(unsigned long sp);
extern void free_init_pages(char *what, unsigned long begin, unsigned long end);

void default_idle(void);
bool set_pm_idle_to_default(void);

void stop_this_cpu(void *dummy);

Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,14 @@ void default_idle(void)
EXPORT_SYMBOL(default_idle);
#endif

bool set_pm_idle_to_default(void)
{
bool ret = !!pm_idle;

pm_idle = default_idle;

return ret;
}
void stop_this_cpu(void *dummy)
{
local_irq_disable();
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,6 @@ void __init xen_arch_setup(void)
#endif
disable_cpuidle();
boot_option_idle_override = IDLE_HALT;

WARN_ON(set_pm_idle_to_default());
fiddle_vdso();
}

0 comments on commit 41c5767

Please sign in to comment.