sched,fair: Alternative sched_slice()
[linux-2.6-microblaze.git] / kernel / trace / trace_event_perf.c
index a711816..288ad2c 100644 (file)
@@ -421,11 +421,8 @@ NOKPROBE_SYMBOL(perf_trace_buf_alloc);
 void perf_trace_buf_update(void *record, u16 type)
 {
        struct trace_entry *entry = record;
-       int pc = preempt_count();
-       unsigned long flags;
 
-       local_save_flags(flags);
-       tracing_generic_entry_update(entry, type, flags, pc);
+       tracing_generic_entry_update(entry, type, tracing_gen_ctx());
 }
 NOKPROBE_SYMBOL(perf_trace_buf_update);