x86: Fix keeping track of AMD C1E
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 27 Jul 2010 16:53:35 +0000 (18:53 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 2 Aug 2010 15:45:56 +0000 (08:45 -0700)
commite8c534ec068af1a0845aceda373a9bfd2de62030
tree7ee35fd4b0103c04465c1cc5406f036fc07df53e
parent9792db6174d9927700ed288e6d74b9391bf785d1
x86: Fix keeping track of AMD C1E

Accomodate the original C1E-aware idle routine to the different times
during boot when the BIOS enables C1E. While at it, remove the synthetic
CPUID flag in favor of a single global setting which denotes C1E status
on the system.

[ hpa: changed c1e_enabled to be a bool; clarified cpu bit 3:21 comment ]

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
LKML-Reference: <20100727165335.GA11630@aftab>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/acpi.h
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/processor.h
arch/x86/kernel/process.c
drivers/acpi/processor_idle.c