]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Fix the incorrect calculation about C-state idle time
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 2 Jun 2010 03:04:09 +0000 (11:04 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 4 Jun 2010 19:22:18 +0000 (15:22 -0400)
commit907cd596106858cbd9dd88717d5223d334da9fd3
tree60cc7c2c5138837d25221e22cbd6ba966822b01f
parent3173211281a3ce3c9872737cb9c520fbba09227a
ACPI: Fix the incorrect calculation about C-state idle time

The C-state idle time is not calculated correctly, which will return the wrong
residency time in C-state. It will have the following effects:
   1.  The system can't choose the deeper C-state when it is idle next time.
Of course the system power is increased. E.g. On one server machine about 40W
idle power is increased.
   2.  The powertop shows that it will stay in C0 running state about 95% time
although the system is idle at most time.

2.6.35-rc1 regression caused-by: 32e6126b43857e8ee3d6b57cedef3d6d5d8bc9bb
(ACPI: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion)

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reported-by: Yu Zhidong <zhidong.yu@intel.com>
Tested-by: Yu Zhidong <zhidong.yu@intel.com>
Acked-by: Venkatesh Pallipadi <venki@google.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_idle.c