From: Youngtae Lee Date: Thu, 26 Apr 2018 12:31:48 +0000 (+0900) Subject: samsung: emc: change msleep to udelay and expired time for power checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb301c4c8243e43f3f2cf66bbba09b7ffd4301ab;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git samsung: emc: change msleep to udelay and expired time for power checking Change-Id: I274968b7291ba0f23fcd1943e4dd2116ce62b680 Signed-off-by: Youngtae Lee --- diff --git a/drivers/soc/samsung/exynos-emc.c b/drivers/soc/samsung/exynos-emc.c index 29030f38f608..6587596be32c 100644 --- a/drivers/soc/samsung/exynos-emc.c +++ b/drivers/soc/samsung/exynos-emc.c @@ -648,7 +648,7 @@ static struct notifier_block emc_policy_nb = { static int emc_update_domain_const(struct emc_domain *domain) { - unsigned long timeout = jiffies + msecs_to_jiffies(100); + unsigned long timeout = jiffies + msecs_to_jiffies(1000); struct cpumask mask; int cpu; @@ -666,7 +666,7 @@ static int emc_update_domain_const(struct emc_domain *domain) panic("EMC: failed to update domain(cpu%d) constraints\n", cpu); return -EBUSY; } - msleep(10); + udelay(100); } /* update capacity for scheduler */ @@ -715,7 +715,7 @@ static int emc_update_cpu_pwr(unsigned int cpu, bool on) panic("CPU%d %s power on!\n", cpu, on? "already" : "not yet"); - msleep(1); + udelay(100); } domain = emc_find_domain(cpu);