summaryrefslogtreecommitdiff
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>2008-09-29 22:24:27 (GMT)
committerLen Brown <len.brown@intel.com>2008-10-16 21:59:44 (GMT)
commit887e301aa1105326f1412a98749024263b1031c7 (patch)
tree0079a925ac94cb0205858aba07dc2d9714a7ddc4 /drivers/acpi/processor_idle.c
parent3fa8749e584b55f1180411ab1b51117190bac1e5 (diff)
downloadlinux-887e301aa1105326f1412a98749024263b1031c7.tar.xz
cpuidle: use last_state which can reflect the actual state entered
cpuidle accounts the idle time for the C-state it was trying to enter and not to the actual state that the driver eventually entered. The driver may select a different state than the one chosen by cpuidle due to constraints like bus-mastering, etc. Change the time acounting code to look at the dev->last_state after returning from target_state->enter(). Driver can modify dev->last_state internally, inside the enter routine to reflect the actual C-state entered. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Tested-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
0 files changed, 0 insertions, 0 deletions