OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78a16d9
)
powerpc/perf: use is_kernel_addr macro in perf_get_misc_flags()
author
Madhavan Srinivasan
<maddy@linux.vnet.ibm.com>
Sat, 24 Dec 2016 06:05:49 +0000
(11:35 +0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Fri, 17 Feb 2017 10:48:55 +0000
(21:48 +1100)
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>
arch/powerpc/perf/core-book3s.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/perf/core-book3s.c
b/arch/powerpc/perf/core-book3s.c
index
87d17a1
..
595dd71
100644
(file)
--- 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;
}