]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: idle: mark_tsc_unstable() at init-time, not run-time
authorLen Brown <len.brown@intel.com>
Tue, 21 Apr 2009 04:50:11 +0000 (00:50 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 22 Apr 2009 23:22:18 +0000 (19:22 -0400)
commit2cb6174e2ee6a1417446eb83c1c5d7751940df4b
tree43bd9f429a954f30c3df8d3fd53c73588d135d04
parent1e0aeebdb5124157dd204ae4c92d732bfd7443c5
ACPI: idle: mark_tsc_unstable() at init-time, not run-time

The c2 and c3 idle handlers check tsc_halts_in_c()
after every time they return from idle.  Um, when?:-)

Move this check to init-time to remove the unnecessary
run-time overhead, and also to have the check complete before
the first entry into the idle handler.

26100fcc69004db110e839c9bb209c9dea4fef9e
(acpi: fix of pmtimer overflow that make Cx states time incorrect)
replaced the hard-coded use of the PM-timer inside idle,
with ktime_get_readl(), which possibly uses the TSC --
so it is now especially prudent to detect a broken TSC
before entering idle.

http://bugzilla.kernel.org/show_bug.cgi?id=13087

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c