diff options
Diffstat (limited to 'arch')
-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 6baae5a5c331..fe21b2440f28 100644 --- a/arch/powerpc/kernel/perf_counter.c +++ b/arch/powerpc/kernel/perf_counter.c | |||
@@ -450,12 +450,11 @@ void hw_perf_enable(void) | |||
450 | int idx; | 450 | int idx; |
451 | 451 | ||
452 | local_irq_save(flags); | 452 | local_irq_save(flags); |
453 | cpuhw = &__get_cpu_var(cpu_hw_counters); | ||
453 | if (!cpuhw->disabled) { | 454 | if (!cpuhw->disabled) { |
454 | local_irq_restore(flags); | 455 | local_irq_restore(flags); |
455 | return; | 456 | return; |
456 | } | 457 | } |
457 | |||
458 | cpuhw = &__get_cpu_var(cpu_hw_counters); | ||
459 | cpuhw->disabled = 0; | 458 | cpuhw->disabled = 0; |
460 | 459 | ||
461 | /* | 460 | /* |