@@ -48,26 +48,6 @@ static int arm_domain_cpu_init(void)
return -ENODEV;
}
- /*
- * HACK: genpd checks if devices are runtime_suspended
- * before doing a poweroff of the domain. However, that check
- * assumes that that device has a driver. Since CPU devices don't
- * have a driver, genpd assumes that the device is runtime_suspended
- * and will power off the domain as soon as the any device
- * in the domain does a runtime_suspend.
- *
- * c.f. the following code in pm_genpd_poweroff():
- *
- * if (pdd->dev->driver && (!pm_runtime_suspended(pdd->dev)
- * || pdd->dev->power.irq_safe))
- * not_suspended++;
- *
- * Just removing the pdd->dev->driver check would also work,
- * but not sure if that's right in the general case.
- */
- cpu_dev->driver = kzalloc(sizeof(struct device_driver), GFP_KERNEL);
- WARN_ON(!cpu_dev->driver);
-
if (cpu_online(cpuid)) {
pm_runtime_set_active(cpu_dev);
pm_runtime_get_noresume(cpu_dev);
Fixed in Generic PM domains framework. Signed-off-by: Lina Iyer <lina.iyer@linaro.org> --- arch/arm/kernel/domains.c | 20 -------------------- 1 file changed, 20 deletions(-)