mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cpuidle: replace xen access to x86 pm_idle and default_idle
When a Xen Dom0 kernel boots on a hypervisor, it gets access to the raw-hardware ACPI tables. While it parses the idle tables for the hypervisor's beneift, it uses HLT for its own idle. Rather than have xen scribble on pm_idle and access default_idle, have it simply disable_cpuidle() so acpi_idle will not load and architecture default HLT will be used. cc: [email protected] Tested-by: Konrad Rzeszutek Wilk <[email protected]> Acked-by: H. Peter Anvin <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
62027aea23
commit
d91ee5863b
3 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue