aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-12-04 23:30:56 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-05 08:51:29 -0500
commit21bbecdaaef3a6acc19905ab88c0587817318870 (patch)
treed6fd3e222509eb470786ae9c0b1cd9af09f09714 /kernel/trace
parent21a8c466f99063eeb8567318b4e305eda9015408 (diff)
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;
49 49
50/* set when tracing only a pid */ 50/* set when tracing only a pid */
51struct pid *ftrace_pid_trace; 51struct pid *ftrace_pid_trace;
52static struct pid * const ftrace_swapper_pid = (struct pid *)1; 52static struct pid * const ftrace_swapper_pid = &init_struct_pid;
53 53
54/* Quick disabling of function tracer. */ 54/* Quick disabling of function tracer. */
55int function_trace_stop; 55int function_trace_stop;