If a cpu has boost frequency, emc_get_boost_freq offers
boost frequency
Change-Id: I101f923dc2d29ef748ff1661b6f8cbb4054f812b
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
return 1;
}
+/*
+ * return highest boost frequency
+ */
+int emc_get_boost_freq(int cpu)
+{
+ struct emc_domain *domain = emc_get_boost_domain();
+
+ if (!cpumask_test_cpu(cpu, &domain->cpus))
+ return 0;
+
+ return list_last_entry(&emc.modes, struct emc_mode, list)->max_freq;
+}
+
/**********************************************************************************/
/* Update Load */
/**********************************************************************************/
#ifdef CONFIG_EXYNOS_MODE_CHANGER
void exynos_emc_update(int cpu);
int exynos_emc_update_cpu_pwr(unsigned int cpu, bool on);
+int emc_get_boost_freq(int cpu);
#else
static inline void exynos_emc_update(int cpu) {};
static inline int exynos_emc_update_cpu_pwr(unsigned int cpu, bool on) { return 0; };
+static inline int emc_get_boost_freq(int cpu) { return 0; };
#endif
#endif /* __EXYNOS_MODE_CHANGER_H */