summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>2026-11-01 20:58:08 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-11-20 13:25:18 +0530
commitd9801c9fa4a4befc512b43c6b3406fb0bddb00d4 (patch)
treece9c587530003d7f1f5ee0fbbbf44f4c65d76fdb /tools/perf/scripts/python
parent3aa91029dedaa00780f5aa15763e88d31c43eac5 (diff)
KVM: PPC: BookE: Don't call __ffs() on an empty pending_exceptions bitmap
kvmppc_core_check_exceptions() has the same pattern as the Book3S code: it starts the scan of the pending exception bitmap with __ffs(*pending) and is called from kvmppc_core_prepare_to_enter() on every guest entry, so it routinely passes 0 to __ffs(), which is undefined. To be safe here, let's use find_first_bit(), which returns the bitmap size when no bit is set. Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/9d5d92e93197ea43468312c82417b2f24159cca6.1793546707.git.ritesh.list@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions