]> www.infradead.org Git - users/dwmw2/linux.git/commit
drivers/perf: arm_pmu: Fix failure path in PM notifier
authorWill Deacon <will@kernel.org>
Mon, 29 Jul 2019 10:43:48 +0000 (11:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Aug 2019 17:05:27 +0000 (19:05 +0200)
commit1cc390b313cd07662fb38c79fb3dc16d7fedff31
tree07a2996781c740921d07aaf6fc8bc32c137056b6
parent45842c3b55d7792bec170d9eb950bbcd14cd45cb
drivers/perf: arm_pmu: Fix failure path in PM notifier

commit 0d7fd70f26039bd4b33444ca47f0e69ce3ae0354 upstream.

Handling of the CPU_PM_ENTER_FAILED transition in the Arm PMU PM
notifier code incorrectly skips restoration of the counters. Fix the
logic so that CPU_PM_ENTER_FAILED follows the same path as CPU_PM_EXIT.

Cc: <stable@vger.kernel.org>
Fixes: da4e4f18afe0f372 ("drivers/perf: arm_pmu: implement CPU_PM notifier")
Reported-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/perf/arm_pmu.c