diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:46 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:42:31 -0400 |
commit | 750ed1a40783432d0dcb0e6c2e813a12615d7664 (patch) | |
tree | dc2d0eae703ec2ad3fe9a5bc657da5dbe0af2385 /kernel/trace/trace_sched_wakeup.c | |
parent | 4bf39a9411a4ce8712954e03a9bd1592ee345919 (diff) |
ftrace: timestamp syncing, prepare
rename and uninline now() to ftrace_now().
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
-rw-r--r-- | kernel/trace/trace_sched_wakeup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c index 688df965f3f2..b7df825c3af9 100644 --- a/kernel/trace/trace_sched_wakeup.c +++ b/kernel/trace/trace_sched_wakeup.c | |||
@@ -92,7 +92,7 @@ wakeup_sched_switch(struct task_struct *prev, struct task_struct *next) | |||
92 | * as long as possible: | 92 | * as long as possible: |
93 | */ | 93 | */ |
94 | T0 = data->preempt_timestamp; | 94 | T0 = data->preempt_timestamp; |
95 | T1 = now(cpu); | 95 | T1 = ftrace_now(cpu); |
96 | delta = T1-T0; | 96 | delta = T1-T0; |
97 | 97 | ||
98 | if (!report_latency(delta)) | 98 | if (!report_latency(delta)) |
@@ -191,7 +191,7 @@ wakeup_check_start(struct trace_array *tr, struct task_struct *p, | |||
191 | 191 | ||
192 | local_save_flags(flags); | 192 | local_save_flags(flags); |
193 | 193 | ||
194 | tr->data[wakeup_cpu]->preempt_timestamp = now(cpu); | 194 | tr->data[wakeup_cpu]->preempt_timestamp = ftrace_now(cpu); |
195 | ftrace(tr, tr->data[wakeup_cpu], CALLER_ADDR1, CALLER_ADDR2, flags); | 195 | ftrace(tr, tr->data[wakeup_cpu], CALLER_ADDR1, CALLER_ADDR2, flags); |
196 | 196 | ||
197 | out_locked: | 197 | out_locked: |