From: Soohyun Kim Date: Fri, 7 Sep 2018 00:07:36 +0000 (+0900) Subject: [COMMON] soc: cpupm: Add possible cpu checks. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c09b681b544605844f5b8aaa45b33f6d5d18ccd1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] soc: cpupm: Add possible cpu checks. Change-Id: Ia319e7d99d5242f315a329e83da9a8be62b469dc Signed-off-by: Soohyun Kim --- diff --git a/drivers/soc/samsung/exynos-cpupm.c b/drivers/soc/samsung/exynos-cpupm.c index 5666aa1bdd44..f45c14ca5c14 100644 --- a/drivers/soc/samsung/exynos-cpupm.c +++ b/drivers/soc/samsung/exynos-cpupm.c @@ -851,11 +851,15 @@ static int __init cpu_power_mode_init(void) if (of_property_read_bool(dn, "system-idle")) mode->system_idle = true; - if (!of_property_read_string(dn, "siblings", &buf)) + if (!of_property_read_string(dn, "siblings", &buf)) { cpulist_parse(buf, &mode->siblings); + cpumask_and(&mode->siblings, &mode->siblings, cpu_possible_mask); + } - if (!of_property_read_string(dn, "entry-allowed", &buf)) + if (!of_property_read_string(dn, "entry-allowed", &buf)) { cpulist_parse(buf, &mode->entry_allowed); + cpumask_and(&mode->entry_allowed, &mode->entry_allowed, cpu_possible_mask); + } atomic_set(&mode->disable, 0);