From: Park Bumgyu Date: Mon, 26 Feb 2018 07:13:32 +0000 (+0900) Subject: HACK: handle big reset control X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6dcfda3c0f4a838b93bfbe605a5e2a09a2ca882c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git HACK: handle big reset control In prior chips, only big cluster supports CPD(Cluster Power Down), therefore, big_reset_control() is called in cluster_enable/disable function. It should be changed to consider cluster. Change-Id: I75a50df68a44aceabb41b06fd9d66cb65aaf7de2 Signed-off-by: Park Bumgyu --- diff --git a/drivers/soc/samsung/exynos-cpupm.c b/drivers/soc/samsung/exynos-cpupm.c index c6d9195f7319..eae11126dbf0 100644 --- a/drivers/soc/samsung/exynos-cpupm.c +++ b/drivers/soc/samsung/exynos-cpupm.c @@ -260,6 +260,12 @@ static void __init idle_ip_init(void) /****************************************************************************** * CAL interfaces * ******************************************************************************/ +#ifdef CONFIG_EXYNOS_REBOOT +extern void big_reset_control(int en); +#else +static inline void big_reset_control(int en) { } +#endif + static void cpu_enable(unsigned int cpu) { cal_cpu_enable(cpu); @@ -273,10 +279,12 @@ static void cpu_disable(unsigned int cpu) static void cluster_enable(unsigned int cluster_id) { cal_cluster_enable(cluster_id); + big_reset_control(1); } static void cluster_disable(unsigned int cluster_id) { + big_reset_control(0); cal_cluster_disable(cluster_id); }