tracing, x86, cpuidle: Move the end point of a C state in the power tracer
authorArjan van de Ven <arjan@infradead.org>
Sat, 19 Sep 2009 11:35:33 +0000 (13:35 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Sep 2009 16:57:52 +0000 (18:57 +0200)
commit288f023e708efd89d77ce9acf977a33a623ae83d
treec3fe7d1bcab32f9dcfd16d92b76098ef4c125178
parent964a0b3d2b1b1cac1d01e29b635831b3d92a3fdd
tracing, x86, cpuidle: Move the end point of a C state in the power tracer

The "end of a C state" trace point currently happens before
the code runs that corrects the TSC for having stopped during idle.

The result of this is that the timestamp of the end-of-C-state event
is garbage on cpus where the TSC stops during idle.

This patch moves the end point of the C state to after the timekeeping
engine of the kernel has been corrected.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Len Brown <len.brown@intel.com>
Cc: fweisbec@gmail.com
Cc: peterz@infradead.org
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20090919133533.139c2a46@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/process.c
drivers/cpuidle/cpuidle.c