diff options
Diffstat (limited to 'arch/powerpc/kernel/perf_counter.c')
-rw-r--r-- | arch/powerpc/kernel/perf_counter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/perf_counter.c b/arch/powerpc/kernel/perf_counter.c index f88c35d0710a..0e5651385ddc 100644 --- a/arch/powerpc/kernel/perf_counter.c +++ b/arch/powerpc/kernel/perf_counter.c | |||
@@ -457,8 +457,7 @@ static void counter_sched_in(struct perf_counter *counter, int cpu) | |||
457 | { | 457 | { |
458 | counter->state = PERF_COUNTER_STATE_ACTIVE; | 458 | counter->state = PERF_COUNTER_STATE_ACTIVE; |
459 | counter->oncpu = cpu; | 459 | counter->oncpu = cpu; |
460 | counter->tstamp_running += counter->ctx->time_now - | 460 | counter->tstamp_running += counter->ctx->time - counter->tstamp_stopped; |
461 | counter->tstamp_stopped; | ||
462 | if (is_software_counter(counter)) | 461 | if (is_software_counter(counter)) |
463 | counter->hw_ops->enable(counter); | 462 | counter->hw_ops->enable(counter); |
464 | } | 463 | } |