mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-27 00:33:55 +00:00
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>
This commit is contained in:
parent
78a16d9fc1
commit
a2391b35f1
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ static inline u32 perf_get_misc_flags(struct pt_regs *regs)
|
||||||
*/
|
*/
|
||||||
if (ppmu->flags & PPMU_NO_SIPR) {
|
if (ppmu->flags & PPMU_NO_SIPR) {
|
||||||
unsigned long siar = mfspr(SPRN_SIAR);
|
unsigned long siar = mfspr(SPRN_SIAR);
|
||||||
if (siar >= PAGE_OFFSET)
|
if (is_kernel_addr(siar))
|
||||||
return PERF_RECORD_MISC_KERNEL;
|
return PERF_RECORD_MISC_KERNEL;
|
||||||
return PERF_RECORD_MISC_USER;
|
return PERF_RECORD_MISC_USER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue