From: Steven Rostedt Date: Fri, 5 Dec 2008 04:30:56 +0000 (-0500) Subject: ftrace: use init_struct_pid as swapper pid X-Git-Tag: upstream/snapshot3+hdmi~18679^2~425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21bbecdaaef3a6acc19905ab88c0587817318870;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Ingo Molnar --- diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index d2b1565..2971fe4 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;