]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: idle: fix init-time TSC check regression
authorLen Brown <len.brown@intel.com>
Thu, 14 May 2009 21:27:38 +0000 (17:27 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 16 May 2009 05:51:51 +0000 (01:51 -0400)
commit02f562163069065fe3cbee430a6b5e53ecf6664b
tree12e89aeaabb6dd99d0d7f49c8e7cd88d41f77c2d
parent334dcf3687580e3aab1ff315da763471db5f3932
ACPI: idle: fix init-time TSC check regression

A previous 2.6.30 patch, 2cb6174e2ee6a1417446eb83c1c5d7751940df4b,
(ACPI: idle: mark_tsc_unstable() at init-time, not run-time)
erroneously disabled the TSC on systems that did not actually
have valid deep C-states.

Move the check after the deep-C-states are validated,
via new helper, tsc_check_state(), hich replaces tsc_halts_in_c().

Signed-off-by: Len Brown <len.brown@intel.com>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Frans Pop <elendil@planet.nl>
drivers/acpi/processor_idle.c