summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/cpuidle/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/cpuidle/driver.c')
-rw-r--r--kernel/drivers/cpuidle/driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/drivers/cpuidle/driver.c b/kernel/drivers/cpuidle/driver.c
index 5db147859..389ade457 100644
--- a/kernel/drivers/cpuidle/driver.c
+++ b/kernel/drivers/cpuidle/driver.c
@@ -227,6 +227,10 @@ static int __cpuidle_register_driver(struct cpuidle_driver *drv)
if (!drv || !drv->state_count)
return -EINVAL;
+ ret = cpuidle_coupled_state_verify(drv);
+ if (ret)
+ return ret;
+
if (cpuidle_disabled())
return -ENODEV;