diff options
Diffstat (limited to 'arch/powerpc/perf/core-book3s.c')
-rw-r--r-- | arch/powerpc/perf/core-book3s.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 3d566ee896e2..af4b4b1a691f 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/arch/powerpc/perf/core-book3s.c | |||
@@ -919,12 +919,13 @@ static void power_pmu_enable(struct pmu *pmu) | |||
919 | 919 | ||
920 | if (!ppmu) | 920 | if (!ppmu) |
921 | return; | 921 | return; |
922 | |||
922 | local_irq_save(flags); | 923 | local_irq_save(flags); |
924 | |||
923 | cpuhw = &__get_cpu_var(cpu_hw_events); | 925 | cpuhw = &__get_cpu_var(cpu_hw_events); |
924 | if (!cpuhw->disabled) { | 926 | if (!cpuhw->disabled) |
925 | local_irq_restore(flags); | 927 | goto out; |
926 | return; | 928 | |
927 | } | ||
928 | cpuhw->disabled = 0; | 929 | cpuhw->disabled = 0; |
929 | 930 | ||
930 | /* | 931 | /* |