diff options
author | Madhavan Srinivasan <maddy@linux.vnet.ibm.com> | 2016-12-24 11:35:49 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-17 21:48:55 +1100 |
commit | a2391b35f1d9d5b51d43a9150c7239253565d5a6 (patch) | |
tree | f3e439262b1bca9031ca75943ee1dd4c4a11c051 /arch/powerpc/perf/core-book3s.c | |
parent | 78a16d9fc1206e1a484b6ac96348756f3846bfea (diff) | |
download | linux-stable-a2391b35f1d9d5b51d43a9150c7239253565d5a6.tar.gz linux-stable-a2391b35f1d9d5b51d43a9150c7239253565d5a6.tar.bz2 linux-stable-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/core-book3s.c')
-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; } |