mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
powerpc/perf: Use existing out label in power_pmu_enable()
commit 0a48843d6c 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>
This commit is contained in:
parent
8f6c5b6c12
commit
b26eb91187
|
|
@ -919,12 +919,13 @@ static void power_pmu_enable(struct pmu *pmu)
|
|||
|
||||
if (!ppmu)
|
||||
return;
|
||||
|
||||
local_irq_save(flags);
|
||||
|
||||
cpuhw = &__get_cpu_var(cpu_hw_events);
|
||||
if (!cpuhw->disabled) {
|
||||
local_irq_restore(flags);
|
||||
return;
|
||||
}
|
||||
if (!cpuhw->disabled)
|
||||
goto out;
|
||||
|
||||
cpuhw->disabled = 0;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user