From: Jaejoon Yoo Date: Fri, 22 Jun 2018 07:33:04 +0000 (+0900) Subject: [COMMON] runtime PM: add bcm function to exynos-pd X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc37173aea3f14b26d499208cd407b1a86940163;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] runtime PM: add bcm function to exynos-pd Change-Id: I8961c4014517688e94041b69ec70269f71b192f4 Signed-off-by: Jaejoon Yoo --- diff --git a/drivers/soc/samsung/exynos-pd.c b/drivers/soc/samsung/exynos-pd.c index fef7fa174754..ac76e62f006f 100644 --- a/drivers/soc/samsung/exynos-pd.c +++ b/drivers/soc/samsung/exynos-pd.c @@ -73,13 +73,6 @@ static void exynos_pd_power_on_pre(struct exynos_pm_domain *pd) static void exynos_pd_power_on_post(struct exynos_pm_domain *pd) { - if (cal_pd_status(pd->cal_pdid)) { - if (pd->bcm) -#if defined(CONFIG_EXYNOS_BCM) - bcm_pd_sync(pd->bcm, true); -#elif defined(CONFIG_EXYNOS_BCM_DBG) - exynos_bcm_dbg_pd_sync(pd->bcm, true); -#endif } static void exynos_pd_power_off_pre(struct exynos_pm_domain *pd) @@ -89,14 +82,6 @@ static void exynos_pd_power_off_pre(struct exynos_pm_domain *pd) exynos_g3d_power_down_noti_apm(); } #endif /* CONFIG_EXYNOS_CL_DVFS_G3D */ - if (cal_pd_status(pd->cal_pdid)) { - if (pd->bcm) -#if defined(CONFIG_EXYNOS_BCM) - bcm_pd_sync(pd->bcm, false); -#elif defined(CONFIG_EXYNOS_BCM_DBG) - exynos_bcm_dbg_pd_sync(pd->bcm, false); -#endif - if (!strcmp(pd->name, "pd-dispaud")) abox_poweroff(); } diff --git a/include/soc/samsung/exynos-pd.h b/include/soc/samsung/exynos-pd.h index 42188d8a0447..319d4f03aae1 100644 --- a/include/soc/samsung/exynos-pd.h +++ b/include/soc/samsung/exynos-pd.h @@ -29,9 +29,7 @@ #include #include -#if defined(CONFIG_EXYNOS_BCM) -#include -#elif defined(CONFIG_EXYNOS_BCM_DBG) +#if defined(CONFIG_EXYNOS_BCM_DBG) #include #endif @@ -69,9 +67,7 @@ struct exynos_pm_domain { int devfreq_index; struct mutex access_lock; int idle_ip_index; -#if defined(CONFIG_EXYNOS_BCM) - struct bcm_info *bcm; -#elif defined(CONFIG_EXYNOS_BCM_DBG) +#if defined(CONFIG_EXYNOS_BCM_DBG) struct exynos_bcm_pd_info *bcm; #endif bool power_down_skipped;