]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ftrace: use init_struct_pid as swapper pid
authorSteven Rostedt <srostedt@redhat.com>
Fri, 5 Dec 2008 04:30:56 +0000 (23:30 -0500)
committerIngo Molnar <mingo@elte.hu>
Fri, 5 Dec 2008 13:51:29 +0000 (14:51 +0100)
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>
kernel/trace/ftrace.c

index d2b156538162bc5a51faa9a76a1fda4772f44cd9..2971fe48f55e1d1315e1847500499b587a225042 100644 (file)
@@ -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;