Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262372
b: refs/heads/master
c: d91ee58
h: refs/heads/master
v: v3
  • Loading branch information
Len Brown committed Aug 3, 2011
1 parent 71017f9 commit facd065
Show file tree
Hide file tree
Showing 4 changed files with 9 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: 62027aea23fcd14478abdddd3b74a4e0f5fb2984
refs/heads/master: d91ee5863b71e8c90eaf6035bff3078a85e2e7b5
3 changes: 2 additions & 1 deletion trunk/arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/mm.h>
#include <linux/pm.h>
#include <linux/memblock.h>
#include <linux/cpuidle.h>

#include <asm/elf.h>
#include <asm/vdso.h>
Expand Down Expand Up @@ -426,7 +427,7 @@ void __init xen_arch_setup(void)
#ifdef CONFIG_X86_32
boot_cpu_data.hlt_works_ok = 1;
#endif
pm_idle = default_idle;
disable_cpuidle();
boot_option_idle_override = IDLE_HALT;

fiddle_vdso();
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/cpuidle/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ int cpuidle_disabled(void)
{
return off;
}
void disable_cpuidle(void)
{
off = 1;
}

#if defined(CONFIG_ARCH_HAS_CPU_IDLE_WAIT)
static void cpuidle_kick_cpus(void)
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/cpuidle.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ struct cpuidle_driver {
};

#ifdef CONFIG_CPU_IDLE
extern void disable_cpuidle(void);

extern int cpuidle_register_driver(struct cpuidle_driver *drv);
struct cpuidle_driver *cpuidle_get_driver(void);
Expand All @@ -135,6 +136,7 @@ extern int cpuidle_enable_device(struct cpuidle_device *dev);
extern void cpuidle_disable_device(struct cpuidle_device *dev);

#else
static inline void disable_cpuidle(void) { }

static inline int cpuidle_register_driver(struct cpuidle_driver *drv)
{return -ENODEV; }
Expand Down

0 comments on commit facd065

Please sign in to comment.