Change-Id: Iccd6b703d564470f199375a2cfa75597973775b3
Signed-off-by: Hyunju Kang <hjtop.kang@gmail.com>
return 0;
}
+static int initcall_done;
static int system_busy(void)
{
int i;
+ /* do not allow system idle util initialization time */
+ if (!initcall_done)
+ return 1;
+
for (i = 0; i < NUM_IDLE_IP_REG; i++)
if (check_idle_ip(i))
return 1;
return 0;
}
arch_initcall(exynos_cpupm_init);
+
+static int __init exynos_cpupm_late_init(void)
+{
+ initcall_done = true;
+
+ return 0;
+}
+late_initcall(exynos_cpupm_late_init);
#endif
static int cpuhp_cpupm_enable_idle(unsigned int cpu)