]> git.baikalelectronics.ru Git - kernel.git/commit
x86: don't disable TSC in any C states on AMD Fam10h
authorAndi Kleen <ak@suse.de>
Wed, 30 Jan 2008 12:32:41 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:41 +0000 (13:32 +0100)
commit432c4312b6b35144b88976b608e3b27e2fed97c9
tree285a144b79d8d17a35c7cd22ab1adb2ef6bdd0e8
parent126a16538c1f8a22776f78bcae3aff02e2fdcd3e
x86: don't disable TSC in any C states on AMD Fam10h

The ACPI code currently disables TSC use in any C2 and C3
states. But the AMD Fam10h BKDG documents that the TSC
will never stop in any C states when the CONSTANT_TSC bit is
set. Make this disabling conditional on CONSTANT_TSC
not set on AMD.

I actually think this is true on Intel too for C2 states
on CPUs with p-state invariant TSC, but this needs
further discussions with Len to really confirm :-)

So far it is only enabled on AMD.

Cc: lenb@kernel.org
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/acpi/processor_idle.c