summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorJason Baron2009-02-11 19:57:25 +0100
committerSteven Rostedt2009-02-13 15:06:18 +0100
commitb5f9fd0f8a05c9bafb91a9a85b9110938d8e585b (patch)
tree14e84d393f5dd1235fc6e256564d80e965daf3a7 /arch/x86/kernel/process.c
parentring-buffer: rename label out_unlock to out_reset (diff)
downloadkernel-qcow2-linux-b5f9fd0f8a05c9bafb91a9a85b9110938d8e585b.tar.gz
kernel-qcow2-linux-b5f9fd0f8a05c9bafb91a9a85b9110938d8e585b.tar.xz
kernel-qcow2-linux-b5f9fd0f8a05c9bafb91a9a85b9110938d8e585b.zip
tracing: convert c/p state power tracer to use tracepoints
Convert the c/p state "power" tracer to use tracepoints. Avoids a function call when the tracer is disabled. Signed-off-by: Jason Baron <jbaron@redhat.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 026819ffcb0c..e0d0fd7ab514 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -19,6 +19,9 @@ EXPORT_SYMBOL(idle_nomwait);
struct kmem_cache *task_xstate_cachep;
+DEFINE_TRACE(power_start);
+DEFINE_TRACE(power_end);
+
int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
{
*dst = *src;