Commit e630bb5
committed
KVM: x86/pmu: Open code pmc_event_is_allowed() in its callers
Open code pmc_event_is_allowed() in its callers, as kvm_pmu_trigger_event()
only needs to check the event filter (both global and local enables are
consulted outside of the loop).
No functional change intended.
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20250805190526.1453366-14-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 6b6f1ad commit e630bb5
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | 494 | | |
501 | 495 | | |
502 | 496 | | |
| |||
507 | 501 | | |
508 | 502 | | |
509 | 503 | | |
510 | | - | |
| 504 | + | |
| 505 | + | |
511 | 506 | | |
512 | 507 | | |
513 | 508 | | |
| |||
979 | 974 | | |
980 | 975 | | |
981 | 976 | | |
982 | | - | |
| 977 | + | |
| 978 | + | |
983 | 979 | | |
984 | 980 | | |
985 | 981 | | |
| |||
0 commit comments