diff options
author | Madhavan Srinivasan <maddy@linux.vnet.ibm.com> | 2016-12-24 07:05:49 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-17 11:48:55 +0100 |
commit | a2391b35f1d9d5b51d43a9150c7239253565d5a6 (patch) | |
tree | f3e439262b1bca9031ca75943ee1dd4c4a11c051 /arch/powerpc/perf | |
parent | powerpc/perf: Avoid FAB_*_MATCH checks for power9 (diff) | |
download | linux-a2391b35f1d9d5b51d43a9150c7239253565d5a6.tar.xz linux-a2391b35f1d9d5b51d43a9150c7239253565d5a6.zip |
powerpc/perf: use is_kernel_addr macro in perf_get_misc_flags()
Cleanup to use is_kernel_addr macro.
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r-- | arch/powerpc/perf/core-book3s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index 87d17a1f7168..595dd718ea87 100644 --- a/arch/powerpc/perf/core-book3s.c +++ b/arch/powerpc/perf/core-book3s.c @@ -248,7 +248,7 @@ static inline u32 perf_get_misc_flags(struct pt_regs *regs) */ if (ppmu->flags & PPMU_NO_SIPR) { unsigned long siar = mfspr(SPRN_SIAR); - if (siar >= PAGE_OFFSET) + if (is_kernel_addr(siar)) return PERF_RECORD_MISC_KERNEL; return PERF_RECORD_MISC_USER; } |