config ARM_EXYNOS_FF
bool "SAMSUNG EXYNOS FF(Frequency Filter) driver"
- depends on ARCH_EXYNOS && (PSTATE_EXYNOS_HAFM || PSTATE_EXYNOS_HAFM_TB)
+ depends on ARCH_EXYNOS && (EXYNOS_PSTATE_HAFM || EXYNOS_PSTATE_HAFM_TB)
default y
help
This adds the CPUFreq driver for exynos chipsets which needs
if (!of_property_read_u32(dn, "min-freq", &val))
domain->min_freq = max(domain->min_freq, val);
-#ifdef CONFIG_EXYNOS_MODE_CHANGER
+#ifdef CONFIG_EXYNOS_PSTATE_MODE_CHANGER
/* If this domain has boost freq, change max */
val = emc_get_boost_freq(cpumask_first(&domain->cpus));
if (val)
return cpumask_intersects(policy->cpus, &eff_driver->cpus);
}
-#ifdef CONFIG_PSTATE_EXYNOS_HAFM_TB
+#ifdef CONFIG_EXYNOS_PSTATE_HAFM_TB
static bool check_filtering(unsigned int target_freq, unsigned int flag)
{
unsigned int cur_freq;
if (policy_need_filter(policy)) {
mutex_lock(&eff_driver->lock);
-#ifdef CONFIG_PSTATE_EXYNOS_HAFM_TB
+#ifdef CONFIG_EXYNOS_PSTATE_HAFM_TB
if (check_filtering(target_freq, flag))
goto out;
void cpufreq_policy_apply_limits(struct cpufreq_policy *policy)
{
-#ifdef CONFIG_PSTATE_EXYNOS_HAFM_TB
+#ifdef CONFIG_EXYNOS_PSTATE_HAFM_TB
if (policy_need_filter(policy)) {
if (check_boost_freq_throttled(policy)) {
pr_debug("exynos-ff: wait for boost freq throttling completion\n");
help
Support GNSS_PMUCAL for Exynos SoC.
-config EXYNOS_MODE_CHANGER
- bool "Exynos Mode Changer"
- default n
- depends on ARCH_EXYNOS
- depends on CPU_FREQ
- depends on HOTPLUG_CPU
- help
- Enable EXYNOS MODE CHANGER for Exynos SoC.
- This module controls number of online cpu.
-
config SHUB_PMUCAL
bool "Exynos PMU(for SHUB) Chip Abstraction Layer"
depends on CAL_IF
obj-$(CONFIG_EXYNOS_PM_DOMAINS) += pm_domains.o
#CPUHOTPLUG
obj-$(CONFIG_ARCH_EXYNOS) += exynos-cpuhp.o
-obj-$(CONFIG_EXYNOS_MODE_CHANGER) += exynos-emc.o
+obj-$(CONFIG_EXYNOS_PSTATE_MODE_CHANGER) += exynos-emc.o
# CPU Topology
obj-$(CONFIG_ARCH_EXYNOS) += exynos-topology.o
obj-$(CONFIG_EXYNOS_HIU) += exynos-hiu.o
# HAFM & HAFM-TB
-obj-$(CONFIG_PSTATE_EXYNOS_HAFM) += exynos-hafm.o
-obj-$(CONFIG_PSTATE_EXYNOS_HAFM_TB) += exynos-hafm-tb.o
+obj-$(CONFIG_EXYNOS_PSTATE_HAFM) += exynos-hafm.o
+obj-$(CONFIG_EXYNOS_PSTATE_HAFM_TB) += exynos-hafm-tb.o
struct hiu_stats * stats;
};
-#if defined(CONFIG_PSTATE_EXYNOS_HAFM) || defined(CONFIG_PSTATE_EXYNOS_HAFM_TB)
+#if defined(CONFIG_EXYNOS_PSTATE_HAFM) || defined(CONFIG_EXYNOS_PSTATE_HAFM_TB)
extern int exynos_hiu_set_freq(unsigned int id, unsigned int req_freq);
extern int exynos_hiu_get_freq(unsigned int id);
extern int exynos_hiu_get_max_freq(void);
* published by the Free Software Foundation.
*/
-#ifndef __EXYNOS_MODE_CHANGER_H
-#define __EXYNOS_MODE_CHANGER_H __FILE__
+#ifndef __EXYNOS_PSTATE_MODE_CHANGER_H
+#define __EXYNOS_PSTATE_MODE_CHANGER_H __FILE__
-#ifdef CONFIG_EXYNOS_MODE_CHANGER
+#ifdef CONFIG_EXYNOS_PSTATE_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);
unsigned int exynos_cpufreq_get_locked(unsigned int cpu);
-#endif /* __EXYNOS_MODE_CHANGER_H */
+#endif /* __EXYNOS_PSTATE_MODE_CHANGER_H */
if (on_null_domain(cpu_rq(cpu)))
return;
-#ifdef CONFIG_EXYNOS_MODE_CHANGER
+#ifdef CONFIG_EXYNOS_PSTATE_MODE_CHANGER
exynos_emc_update(cpu);
#endif
cpumask_set_cpu(cpu, nohz.idle_cpus_mask);
update_overutilized_status(rq);
-#ifdef CONFIG_EXYNOS_MODE_CHANGER
+#ifdef CONFIG_EXYNOS_PSTATE_MODE_CHANGER
exynos_emc_update(rq->cpu);
#endif
}