diff options
| -rw-r--r-- | arch/arm/mach-exynos/platsmp.c | 4 | ||||
| -rw-r--r-- | arch/arm/mach-s3c24xx/mach-osiris-dvs.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index c39ffd2e2fe6..b6da7edbbd2f 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c | |||
| @@ -336,9 +336,9 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle) | |||
| 336 | /* wait max 10 ms until cpu1 is on */ | 336 | /* wait max 10 ms until cpu1 is on */ |
| 337 | while (exynos_cpu_power_state(core_id) | 337 | while (exynos_cpu_power_state(core_id) |
| 338 | != S5P_CORE_LOCAL_PWR_EN) { | 338 | != S5P_CORE_LOCAL_PWR_EN) { |
| 339 | if (timeout-- == 0) | 339 | if (timeout == 0) |
| 340 | break; | 340 | break; |
| 341 | 341 | timeout--; | |
| 342 | mdelay(1); | 342 | mdelay(1); |
| 343 | } | 343 | } |
| 344 | 344 | ||
diff --git a/arch/arm/mach-s3c24xx/mach-osiris-dvs.c b/arch/arm/mach-s3c24xx/mach-osiris-dvs.c index 058ce73137e8..5d819b6ea428 100644 --- a/arch/arm/mach-s3c24xx/mach-osiris-dvs.c +++ b/arch/arm/mach-s3c24xx/mach-osiris-dvs.c | |||
| @@ -65,16 +65,16 @@ static int osiris_dvs_notify(struct notifier_block *nb, | |||
| 65 | 65 | ||
| 66 | switch (val) { | 66 | switch (val) { |
| 67 | case CPUFREQ_PRECHANGE: | 67 | case CPUFREQ_PRECHANGE: |
| 68 | if (old_dvs & !new_dvs || | 68 | if ((old_dvs && !new_dvs) || |
| 69 | cur_dvs & !new_dvs) { | 69 | (cur_dvs && !new_dvs)) { |
| 70 | pr_debug("%s: exiting dvs\n", __func__); | 70 | pr_debug("%s: exiting dvs\n", __func__); |
| 71 | cur_dvs = false; | 71 | cur_dvs = false; |
| 72 | gpio_set_value(OSIRIS_GPIO_DVS, 1); | 72 | gpio_set_value(OSIRIS_GPIO_DVS, 1); |
| 73 | } | 73 | } |
| 74 | break; | 74 | break; |
| 75 | case CPUFREQ_POSTCHANGE: | 75 | case CPUFREQ_POSTCHANGE: |
| 76 | if (!old_dvs & new_dvs || | 76 | if ((!old_dvs && new_dvs) || |
| 77 | !cur_dvs & new_dvs) { | 77 | (!cur_dvs && new_dvs)) { |
| 78 | pr_debug("entering dvs\n"); | 78 | pr_debug("entering dvs\n"); |
| 79 | cur_dvs = true; | 79 | cur_dvs = true; |
| 80 | gpio_set_value(OSIRIS_GPIO_DVS, 0); | 80 | gpio_set_value(OSIRIS_GPIO_DVS, 0); |
