Skip to contentSkip to conversation

kvm: x86: Unregister cpufreq notifier on unload

PATCH Applied Jan Kiszka 2 participants 2 messages Apr 17, 2009 – Apr 22, 2009

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 kvm: x86: Unregister cpufreq notifier on unload

Properly unregister cpufreq notifier on onload if it was registered during init.

---

 arch/x86/kvm/x86.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/x86/kvm/x86.c +3 -0
index 0bb4131..95892f7 100644
@@ -2783,6 +2783,9 @@ out:
 
 void kvm_arch_exit(void)
 {
+	if (!boot_cpu_has(X86_FEATURE_CONSTANT_TSC))
+		cpufreq_unregister_notifier(&kvmclock_cpufreq_notifier_block,
+					    CPUFREQ_TRANSITION_NOTIFIER);
 	kvm_x86_ops = NULL;
 	kvm_mmu_module_exit();
 }
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

Properly unregister cpufreq notifier on onload if it was registered during init.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function