From: lakkyung.jung Date: Wed, 23 May 2018 13:17:19 +0000 (+0900) Subject: [COMMON] soc: samsung: Add featuring to CPUIDLE. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a39dc12f561859c8e34cfb17e962fb68e687711b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] soc: samsung: Add featuring to CPUIDLE. Change-Id: Ied3e9608b57f94ae9ed5aab8936482f03de7c303 Signed-off-by: lakkyung.jung --- diff --git a/drivers/soc/samsung/exynos-cpupm.c b/drivers/soc/samsung/exynos-cpupm.c index f1f7c98112f6..ebbac4d10d38 100644 --- a/drivers/soc/samsung/exynos-cpupm.c +++ b/drivers/soc/samsung/exynos-cpupm.c @@ -74,7 +74,9 @@ static int check_idle_ip(int reg_index) *--------------------------- (XOR) * 0 0 0 0 0 1 0 0 */ +#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE cpuidle_profile_idle_ip(reg_index, ((val & ~mask) ^ ~mask)); +#endif } return ret; @@ -606,14 +608,18 @@ static int try_to_enter_power_mode(int cpu, struct power_mode *mode) dbg_snapshot_cpuidle(mode->name, 0, 0, DSS_FLAG_IN); set_state_powerdown(mode); +#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE cpuidle_profile_group_idle_enter(mode->id); +#endif return 1; } static void exit_mode(int cpu, struct power_mode *mode, int cancel) { +#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE cpuidle_profile_group_idle_exit(mode->id, cancel); +#endif /* * Configure settings to exit power mode. This is executed by the @@ -851,7 +857,9 @@ static int __init cpu_power_mode_init(void) for_each_cpu(cpu, &mode->siblings) add_mode(per_cpu(cpupm, cpu).modes, mode); +#ifdef CONFIG_ARM64_EXYNOS_CPUIDLE cpuidle_profile_group_idle_register(mode->id, mode->name); +#endif } if (attr_count)