cpuidle-haltpoll: Fix a small typo of haltpoll

Message ID bb6be3ff924a6ade66a9c4be37a15adb315d47e1.1586340575.git.wuyihao@linux.alibaba.com
State New
Headers show
Series
  • cpuidle-haltpoll: Fix a small typo of haltpoll
Related show

Commit Message

Yihao Wu April 8, 2020, 10:11 a.m.
This patch fix a spelling typo in cpuidle-haltpoll.c

Signed-off-by: Yihao Wu <wuyihao@linux.alibaba.com>
---
 drivers/cpuidle/cpuidle-haltpoll.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/cpuidle/cpuidle-haltpoll.c b/drivers/cpuidle/cpuidle-haltpoll.c
index db124bc1ca2c..fcc53215bac8 100644
--- a/drivers/cpuidle/cpuidle-haltpoll.c
+++ b/drivers/cpuidle/cpuidle-haltpoll.c
@@ -94,7 +94,7 @@  static void haltpoll_uninit(void)
 	haltpoll_cpuidle_devices = NULL;
 }
 
-static bool haltpool_want(void)
+static bool haltpoll_want(void)
 {
 	return kvm_para_has_hint(KVM_HINTS_REALTIME) || force;
 }
@@ -110,7 +110,7 @@  static int __init haltpoll_init(void)
 
 	cpuidle_poll_state_init(drv);
 
-	if (!kvm_para_available() || !haltpool_want())
+	if (!kvm_para_available() || !haltpoll_want())
 		return -ENODEV;
 
 	ret = cpuidle_register_driver(drv);