Skip to contentSkip to conversation

cpuidle-haltpoll: fix error comments in arch_haltpoll_disable

PATCH Applied Li Qiang 2 participants 2 messages Sep 24, 2020 – Sep 25, 2020

Subsystems (3)
lore
Share & tools
lore

Li Qiang

author
#0 lore raw

PATCH 1/1 cpuidle-haltpoll: fix error comments in arch_haltpoll_disable

The 'arch_haltpoll_disable' is used to disable guest halt poll. Correct the comments.

Fixes a1c4423b02b21 ("cpuidle-haltpoll: disable host side polling when kvm virtualized")
---
 arch/x86/kernel/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kvm.c +1 -1
index 08320b0b2b27..94ebb31cb4ce 100644
@@ -954,7 +954,7 @@ void arch_haltpoll_disable(unsigned int cpu)
 	if (!kvm_para_has_feature(KVM_FEATURE_POLL_CONTROL))
 		return;
 
-	/* Enable guest halt poll disables host halt poll */
+	/* Disable guest halt poll enables host halt poll */
 	smp_call_function_single(cpu, kvm_enable_host_haltpoll, NULL, 1);
 }
 EXPORT_SYMBOL_GPL(arch_haltpoll_disable);
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 15 lines · Li Qiang

The 'arch_haltpoll_disable' is used to disable guest halt poll. Correct the comments.

Fixes a1c4423b02b21 ("cpuidle-haltpoll: disable host side polling when kvm virtualized")
---
 arch/x86/kernel/kvm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kvm.c +0 -0
index 08320b0b2b27..94ebb31cb4ce 100644

arch/x86/kernel/kvm.c void arch_haltpoll_disable(unsigned int cpu) · line 960

Quoted 8 lines
arch/x86/kernel/kvm.c +1 -1
@@ -954,7 +954,7 @@ void arch_haltpoll_disable(unsigned int cpu)
 	if (!kvm_para_has_feature(KVM_FEATURE_POLL_CONTROL))
 		return;
 
-	/* Enable guest halt poll disables host halt poll */
+	/* Disable guest halt poll enables host halt poll */
 	smp_call_function_single(cpu, kvm_enable_host_haltpoll, NULL, 1);
 }
 EXPORT_SYMBOL_GPL(arch_haltpoll_disable);

Queued, thanks.

Paolo