cpuidle-haltpoll: Fix small typo
authorYihao Wu <wuyihao@linux.alibaba.com>
Wed, 8 Apr 2020 10:11:36 +0000 (18:11 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Apr 2020 12:35:45 +0000 (14:35 +0200)
Fix a spelling typo in cpuidle-haltpoll.c.

Signed-off-by: Yihao Wu <wuyihao@linux.alibaba.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle-haltpoll.c

index db124bc1ca2c23472bd77971399f5dd5f6998d5c..fcc53215bac8f5c570daca654fe1ef2b3ff665c0 100644 (file)
@@ -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);