samsung: emc: change msleep to udelay and expired time for power checking
authorYoungtae Lee <yt0729.lee@samsung.com>
Thu, 26 Apr 2018 12:31:48 +0000 (21:31 +0900)
committerlakkyung.jung <lakkyung.jung@samsung.com>
Mon, 23 Jul 2018 05:59:08 +0000 (14:59 +0900)
Change-Id: I274968b7291ba0f23fcd1943e4dd2116ce62b680
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
drivers/soc/samsung/exynos-emc.c

index 29030f38f6087249bb9f2c72a3760502c0db6c29..6587596be32c77e09f9da9e17d1713293f17269e 100644 (file)
@@ -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);