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)
commit520daf7217bc1806c02eb4cfa7805447a3da2f66
tree12e89aeaabb6dd99d0d7f49c8e7cd88d41f77c2d
parent091bf7624d1c90cec9e578a18529f615213ff847
ACPI: idle: fix init-time TSC check regression

A previous 2.6.30 patch, a71e4917dc0ebbcb5a0ecb7ca3486643c1c9a6e2,
(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