summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt2008-12-05 05:30:56 +0100
committerIngo Molnar2008-12-05 14:51:29 +0100
commit21bbecdaaef3a6acc19905ab88c0587817318870 (patch)
treed6fd3e222509eb470786ae9c0b1cd9af09f09714 /kernel/trace
parenttracing/ftrace: provide the macro task_curr_ret_stack() (diff)
downloadkernel-qcow2-linux-21bbecdaaef3a6acc19905ab88c0587817318870.tar.gz
kernel-qcow2-linux-21bbecdaaef3a6acc19905ab88c0587817318870.tar.xz
kernel-qcow2-linux-21bbecdaaef3a6acc19905ab88c0587817318870.zip
ftrace: use init_struct_pid as swapper pid
Impact: clean up Using (struct pid *)-1 as the pointer for ftrace_swapper_pid is a little confusing for others. This patch uses the address of the actual init pid structure instead. This change is only for clarity. It does not affect the code itself. Hopefully soon the swapper tasks will all have their own pid structure and then we can clean up the code a bit more. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index d2b156538162..2971fe48f55e 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -49,7 +49,7 @@ static int last_ftrace_enabled;
/* set when tracing only a pid */
struct pid *ftrace_pid_trace;
-static struct pid * const ftrace_swapper_pid = (struct pid *)1;
+static struct pid * const ftrace_swapper_pid = &init_struct_pid;
/* Quick disabling of function tracer. */
int function_trace_stop;