Commit b26eb911 authored by Michael Ellerman's avatar Michael Ellerman Committed by Greg Kroah-Hartman

powerpc/perf: Use existing out label in power_pmu_enable()

commit 0a48843d upstream.

In power_pmu_enable() we can use the existing out label to reduce the
number of return paths.
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8f6c5b6c
...@@ -919,12 +919,13 @@ static void power_pmu_enable(struct pmu *pmu) ...@@ -919,12 +919,13 @@ static void power_pmu_enable(struct pmu *pmu)
if (!ppmu) if (!ppmu)
return; return;
local_irq_save(flags); local_irq_save(flags);
cpuhw = &__get_cpu_var(cpu_hw_events); cpuhw = &__get_cpu_var(cpu_hw_events);
if (!cpuhw->disabled) { if (!cpuhw->disabled)
local_irq_restore(flags); goto out;
return;
}
cpuhw->disabled = 0; cpuhw->disabled = 0;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment