diff options
-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) | |||
248 | */ | 248 | */ |
249 | if (ppmu->flags & PPMU_NO_SIPR) { | 249 | if (ppmu->flags & PPMU_NO_SIPR) { |
250 | unsigned long siar = mfspr(SPRN_SIAR); | 250 | unsigned long siar = mfspr(SPRN_SIAR); |
251 | if (siar >= PAGE_OFFSET) | 251 | if (is_kernel_addr(siar)) |
252 | return PERF_RECORD_MISC_KERNEL; | 252 | return PERF_RECORD_MISC_KERNEL; |
253 | return PERF_RECORD_MISC_USER; | 253 | return PERF_RECORD_MISC_USER; |
254 | } | 254 | } |