Skip to content

Commit 4008d54

Browse files
kjain101mpe
authored andcommitted
powerpc/kvm: Remove comment related to moving PMU code to perf subsystem
Commit aabcaf6 ("KVM: PPC: Book3S HV P9: Move host OS save/restore functions to built-in") added a comment in switch_pmu_to_guest function, indicating possibility of moving PMU handling code to perf subsystem. But perf subsystem code compilation depends upon the enablement of CONFIG_PERF_EVENTS whereas, kvm code don't have any dependency on this config. Patch remove this comment as switch_pmu_to_guest functionality is needed even if perf subsystem is disabled. Signed-off-by: Kajol Jain <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent db53608 commit 4008d54

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/powerpc/kvm/book3s_hv_p9_perf.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ void switch_pmu_to_guest(struct kvm_vcpu *vcpu,
4444

4545
/* Save host */
4646
if (ppc_get_pmu_inuse()) {
47-
/*
48-
* It might be better to put PMU handling (at least for the
49-
* host) in the perf subsystem because it knows more about what
50-
* is being used.
51-
*/
52-
5347
/* POWER9, POWER10 do not implement HPMC or SPMC */
5448

5549
host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0);

0 commit comments

Comments
 (0)