From: Chungwoo Park Date: Mon, 14 May 2018 08:27:24 +0000 (+0900) Subject: [COMMON] exynos-dm: Add dm related config to code. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4781dd3c79729c03063f56bd7e95abff38af7d63;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] exynos-dm: Add dm related config to code. Change-Id: Ifad8614d135ce4ace4d402569ffb20f062f94108 Signed-off-by: Chungwoo Park --- diff --git a/drivers/soc/samsung/exynos-dm.c b/drivers/soc/samsung/exynos-dm.c index 8c6697fc800e..85fd0aeae420 100644 --- a/drivers/soc/samsung/exynos-dm.c +++ b/drivers/soc/samsung/exynos-dm.c @@ -672,8 +672,9 @@ int policy_update_call_to_DM(int dm_type, u32 min_freq, u32 max_freq) #endif s32 time = 0, pre_time = 0; +#ifdef CONFIG_EXYNOS_SNAPSHOT_DM exynos_ss_dm((int)dm_type, min_freq, max_freq, pre_time, time); - +#endif do_gettimeofday(&pre); mutex_lock(&exynos_dm->lock); do_gettimeofday(&before); @@ -721,7 +722,9 @@ out: time = (after.tv_sec - before.tv_sec) * USEC_PER_SEC + (after.tv_usec - before.tv_usec); +#ifdef CONFIG_EXYNOS_SNAPSHOT_DM exynos_ss_dm((int)dm_type, min_freq, max_freq, pre_time, time); +#endif return 0; } @@ -786,8 +789,9 @@ int DM_CALL(int dm_type, unsigned long *target_freq) struct timeval pre, before, after; s32 time = 0, pre_time = 0; +#ifdef CONFIG_EXYNOS_SNAPSHOT_DM exynos_ss_dm((int)dm_type, *target_freq, 1, pre_time, time); - +#endif do_gettimeofday(&pre); mutex_lock(&exynos_dm->lock); do_gettimeofday(&before); @@ -849,7 +853,9 @@ int DM_CALL(int dm_type, unsigned long *target_freq) time = (after.tv_sec - before.tv_sec) * USEC_PER_SEC + (after.tv_usec - before.tv_usec); +#ifdef CONFIG_EXYNOS_SNAPSHOT_DM exynos_ss_dm((int)dm_type, *target_freq, 3, pre_time, time); +#endif return 0; }