aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorRashmica Gupta <[email protected]>2022-07-07 16:37:17 +0200
committerMichael Ellerman <[email protected]>2022-07-27 21:36:05 +1000
commitec3eb9d941a98f4c0dac263110729680a734279b (patch)
tree33ee98c9e5c4436c6b83dd8e678e22533a3447a1 /net/lapb/lapb_timer.c
parent6042a1652d643d1d34fa89bb314cb102960c0800 (diff)
powerpc/perf: Use PVR rather than oprofile field to determine CPU version
Currently the perf CPU backend drivers detect what CPU they're on using cur_cpu_spec->oprofile_cpu_type. Although that works, it's a bit crufty to be using oprofile related fields, especially seeing as oprofile is more or less unused these days. It also means perf is reliant on the fragile logic in setup_cpu_spec() which detects when we're using a logical PVR and copies back the PMU related fields from the raw CPU entry. So lets check the PVR directly. Suggested-by: Michael Ellerman <[email protected]> Signed-off-by: Rashmica Gupta <[email protected]> Signed-off-by: Christophe Leroy <[email protected]> Reviewed-by: Madhavan Srinivasan <[email protected]> [chleroy: Added power10 and fixed checkpatch issues] Reviewed-and-tested-by: Athira Rajeev <[email protected]> Reviewed-and-tested-By: Kajol Jain <[email protected]> [For 24x7 side changes] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/20c0ee7f99dbf0dbf8658df6b39f84753e6db1ef.1657204631.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions