cpuidle: move idle traces to cpuidle_enter_state()
authorSandeep Tripathy <sandeep.tripathy@linaro.org>
Wed, 2 Jul 2014 09:30:58 +0000 (15:00 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Jul 2014 13:45:23 +0000 (15:45 +0200)
commit30fe6884021b9fa0124609e898a6341be188eb44
treef8c7edee62a0c1b01622ccbcf1e166b368822c3d
parentcd3de83f147601356395b57a8673e9c5ff1e59d1
cpuidle: move idle traces to cpuidle_enter_state()

idle_exit event is the first event after a core exits
idle state. So this should be traced before local irq
is ebabled. Likewise idle_entry is the last event before
a core enters idle state. This will ease visualising the
cpu idle state from kernel traces.

Signed-off-by: Sandeep Tripathy <sandeep.tripathy@linaro.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
[rjw: Subject, rebase]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c
kernel/sched/idle.c