From eb301c4c8243e43f3f2cf66bbba09b7ffd4301ab Mon Sep 17 00:00:00 2001 From: Youngtae Lee Date: Thu, 26 Apr 2018 21:31:48 +0900 Subject: [PATCH] samsung: emc: change msleep to udelay and expired time for power checking Change-Id: I274968b7291ba0f23fcd1943e4dd2116ce62b680 Signed-off-by: Youngtae Lee --- drivers/soc/samsung/exynos-emc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.20.1