mutex_unlock(&cpuhp.lock);
/* applying new user's request */
- return cpuhp_do(type);
+ return cpuhp_do(true);
}
/*
if (type == FAST_HP)
return cpuhp_do(true);
- return cpuhp_do(false);
+ return cpuhp_do(true);
}
/**********************************************************************************/
goto exit;
if (fast_hp && !cpumask_empty(&fast_cpus))
- ret = cpus_up(&fast_cpus);
+ ret = cpus_up(fast_cpus);
return ret;
exit:
cpumask_and(&fast_cpus, &disable_cpus, &fast_cpus);
cpumask_andnot(&disable_cpus, &disable_cpus, &fast_cpus);
if (fast_hp && !cpumask_empty(&fast_cpus))
- ret = cpus_down(&fast_cpus);
+ ret = cpus_down(fast_cpus);
if (ret)
goto exit;
online_cpus = cpuhp_get_online_cpus();
/* print cpu control information */
- if (cpuhp.debug)
+// if (cpuhp.debug)
cpuhp_print_debug_info(online_cpus, fast_hp);
/* if there is no mask change, skip */
if (enable) {
cpuhp_enable(true);
- cpuhp_do(false);
+ cpuhp_do(true);
} else {
mutex_lock(&cpuhp.lock);
case PM_POST_SUSPEND:
cpuhp_suspend(false);
- cpuhp_do(false);
+ cpuhp_do(true);
break;
}
extern int exynos_cpuhp_register(char *name, struct cpumask mask, int type);
extern int exynos_cpuhp_request(char *name, struct cpumask mask, int type);
-#ifdef EXYNOS_FAST_HP
-int cpus_up(struct cpumask *mask);
-int cpus_down(struct cpumask *mask);
-#else
-extern inline int cpus_up(struct cpumask *mask) { return 0; };
-extern inline int cpus_down(struct cpumask *mask) {return 0; };
-#endif
+extern int cpus_down(struct cpumask cpus);
+extern int cpus_up(struct cpumask cpus);
+/*
+extern inline int cpus_down(struct cpumask cpus) { return 0; };
+*/
#endif /* __EXYNOS_CPU_HP_H */