intel_idle: Power traces should trace sleep state entry
authorJohn Mathew <john.mathew@intel.com>
Fri, 16 Mar 2012 13:31:23 +0000 (15:31 +0200)
committerbuildbot <buildbot@intel.com>
Thu, 22 Mar 2012 16:17:24 +0000 (09:17 -0700)
commit7f8e68e3200a440897865e8df742350abf0b48bd
treea3e2c12e6a93239bc8cda172ed7fc2aca61e36e4
parentdb6e51b0c7cbb2aa5491ce74b0a7eaf3b7f03edd
intel_idle: Power traces should trace sleep state entry

BZ: 27776

Currently the power traces use the value of dev->last_state
variable which is updated after the sleep state is exited.
Move the traces to before sleep entry, so that the total
time spent in a sleep state can be displayed correclty by
tools like pytimechart.

Change-Id: If518e63a6018fdb7aa552bcdfe5d8f61aa974164
Signed-off-by: John Mathew <john.mathew@intel.com>
Reviewed-on: http://android.intel.com:8080/39420
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Tested-by: Martin, LoicX <loicx.martin@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/idle/intel_idle.c