]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/perf: Use strstarts() to simplify is_thread_imc_pmu()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 4 Jul 2026 12:13:54 +0000 (14:13 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 28 Jul 2026 04:53:31 +0000 (10:23 +0530)
commitd71b3ca5231750fecdefb3390595e7db30979ac4
tree7f7ec01ce80d0b2f34cd405ac1545c3c63bac32a
parent0bb024f11d120abff3e8db9144a585b9d7fb8459
powerpc/perf: Use strstarts() to simplify is_thread_imc_pmu()

Replace the open-coded implementation with strstarts() to simplify
is_thread_imc_pmu().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Athira Rajeev <atrajeev@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260704121353.201583-3-thorsten.blum@linux.dev
arch/powerpc/perf/imc-pmu.c