]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/trace/trace_hw_branches.c
headers_check fix: linux/signalfd.h
[linux-2.6-omap-h63xx.git] / kernel / trace / trace_hw_branches.c
index ee29e012aa975e5531bfdaa03b054314f15f9aff..649df22d435fc3507d05aecbb244ccf5cbcfffa1 100644 (file)
@@ -25,16 +25,6 @@ static DEFINE_PER_CPU(unsigned char[SIZEOF_BTS], buffer);
 #define this_buffer per_cpu(buffer, smp_processor_id())
 
 
-static void bts_trace_reset(struct trace_array *tr)
-{
-       int cpu;
-
-       tr->time_start = ftrace_now(tr->cpu);
-
-       for_each_online_cpu(cpu)
-               tracing_reset(tr, cpu);
-}
-
 static void bts_trace_start_cpu(void *arg)
 {
        if (this_tracer)
@@ -54,9 +44,9 @@ static void bts_trace_start(struct trace_array *tr)
 {
        int cpu;
 
-       bts_trace_reset(tr);
+       tracing_reset_online_cpus(tr);
 
-       for_each_cpu_mask(cpu, cpu_possible_map)
+       for_each_cpu(cpu, cpu_possible_mask)
                smp_call_function_single(cpu, bts_trace_start_cpu, NULL, 1);
 }
 
@@ -72,13 +62,13 @@ static void bts_trace_stop(struct trace_array *tr)
 {
        int cpu;
 
-       for_each_cpu_mask(cpu, cpu_possible_map)
+       for_each_cpu(cpu, cpu_possible_mask)
                smp_call_function_single(cpu, bts_trace_stop_cpu, NULL, 1);
 }
 
 static int bts_trace_init(struct trace_array *tr)
 {
-       bts_trace_reset(tr);
+       tracing_reset_online_cpus(tr);
        bts_trace_start(tr);
 
        return 0;
@@ -182,7 +172,7 @@ static void trace_bts_prepare(struct trace_iterator *iter)
 {
        int cpu;
 
-       for_each_cpu_mask(cpu, cpu_possible_map)
+       for_each_cpu(cpu, cpu_possible_mask)
                smp_call_function_single(cpu, trace_bts_cpu, iter->tr, 1);
 }