summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-sirfsoc.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2014-07-23 09:20:04 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-23 09:16:47 +0200
commit8903461c9bc56fcb041fb92d054e2529951770b6 (patch)
tree56c803836b9612a4e0cf25471df04621a4307cbd /drivers/rtc/rtc-sirfsoc.c
parentpowerpc: use _GLOBAL_TOC for memmove (diff)
downloadlinux-8903461c9bc56fcb041fb92d054e2529951770b6.tar.xz
linux-8903461c9bc56fcb041fb92d054e2529951770b6.zip
powerpc/perf: Fix MMCR2 handling for EBB
In the recent commit b50a6c584bb4 "Clear MMCR2 when enabling PMU", I screwed up the handling of MMCR2 for tasks using EBB. We must make sure we set MMCR2 *before* ebb_switch_in(), otherwise we overwrite the value of MMCR2 that userspace may have written. That potentially breaks a task that uses EBB and manually uses MMCR2 for event freezing. Fixes: b50a6c584bb4 ("powerpc/perf: Clear MMCR2 when enabling PMU") Cc: stable@vger.kernel.org Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/rtc/rtc-sirfsoc.c')
0 files changed, 0 insertions, 0 deletions