aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2013-06-28 04:15:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-25 17:07:22 -0400
commitb26eb91187fdfa37b304b30003f799899e6373c9 (patch)
tree46314fb0c012a01649fb5a831835b2f868d1959b /arch/powerpc
parent8f6c5b6c1264c6cec9b04848d0744aac0853d641 (diff)
powerpc/perf: Use existing out label in power_pmu_enable()
commit 0a48843d6c5114cfa4a9540ee4d6af87628cec01 upstream. In power_pmu_enable() we can use the existing out label to reduce the number of return paths. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/perf/core-book3s.c9
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 /*