diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:13:32 -0400 |
commit | 4d9493c90f8e6e1b164aede3814010a290161abb (patch) | |
tree | ff92e089d2da9fb5a40511d81f8e57a7e06fdf80 /kernel/trace/trace_sched_switch.c | |
parent | d05cdb25d80f06f77aa6bddb53cd1390d4d91a0b (diff) |
ftrace: remove add-hoc code
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index bddf676914ed..5671db0e1827 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c | |||
@@ -36,11 +36,8 @@ ctx_switch_func(void *__rq, struct task_struct *prev, struct task_struct *next) | |||
36 | data = tr->data[cpu]; | 36 | data = tr->data[cpu]; |
37 | disabled = atomic_inc_return(&data->disabled); | 37 | disabled = atomic_inc_return(&data->disabled); |
38 | 38 | ||
39 | if (likely(disabled == 1)) { | 39 | if (likely(disabled == 1)) |
40 | tracing_sched_switch_trace(tr, data, prev, next, flags); | 40 | tracing_sched_switch_trace(tr, data, prev, next, flags); |
41 | if (trace_flags & TRACE_ITER_SCHED_TREE) | ||
42 | ftrace_all_fair_tasks(__rq, tr, data); | ||
43 | } | ||
44 | 41 | ||
45 | atomic_dec(&data->disabled); | 42 | atomic_dec(&data->disabled); |
46 | local_irq_restore(flags); | 43 | local_irq_restore(flags); |
@@ -65,11 +62,8 @@ wakeup_func(void *__rq, struct task_struct *wakee, struct task_struct *curr) | |||
65 | data = tr->data[cpu]; | 62 | data = tr->data[cpu]; |
66 | disabled = atomic_inc_return(&data->disabled); | 63 | disabled = atomic_inc_return(&data->disabled); |
67 | 64 | ||
68 | if (likely(disabled == 1)) { | 65 | if (likely(disabled == 1)) |
69 | tracing_sched_wakeup_trace(tr, data, wakee, curr, flags); | 66 | tracing_sched_wakeup_trace(tr, data, wakee, curr, flags); |
70 | if (trace_flags & TRACE_ITER_SCHED_TREE) | ||
71 | ftrace_all_fair_tasks(__rq, tr, data); | ||
72 | } | ||
73 | 67 | ||
74 | atomic_dec(&data->disabled); | 68 | atomic_dec(&data->disabled); |
75 | local_irq_restore(flags); | 69 | local_irq_restore(flags); |