mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Viresh Kumar](/assets/img/avatar_default.png)
The cpufreq core now takes the min/max frequency constraints via QoS requests and the CPUFREQ_ADJUST notifier shall get removed later on. Switch over to using the QoS request for maximum frequency constraint for ppc_cbe_cpufreq driver. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> [ rjw: Subject ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
33 lines
1 KiB
C
33 lines
1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* ppc_cbe_cpufreq.h
|
|
*
|
|
* This file contains the definitions used by the cbe_cpufreq driver.
|
|
*
|
|
* (C) Copyright IBM Deutschland Entwicklung GmbH 2005-2007
|
|
*
|
|
* Author: Christian Krafft <krafft@de.ibm.com>
|
|
*
|
|
*/
|
|
|
|
#include <linux/cpufreq.h>
|
|
#include <linux/types.h>
|
|
|
|
int cbe_cpufreq_set_pmode(int cpu, unsigned int pmode);
|
|
int cbe_cpufreq_get_pmode(int cpu);
|
|
|
|
int cbe_cpufreq_set_pmode_pmi(int cpu, unsigned int pmode);
|
|
|
|
#if IS_ENABLED(CONFIG_CPU_FREQ_CBE_PMI)
|
|
extern bool cbe_cpufreq_has_pmi;
|
|
void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy);
|
|
void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy);
|
|
void cbe_cpufreq_pmi_init(void);
|
|
void cbe_cpufreq_pmi_exit(void);
|
|
#else
|
|
#define cbe_cpufreq_has_pmi (0)
|
|
static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {}
|
|
static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {}
|
|
static inline void cbe_cpufreq_pmi_init(void) {}
|
|
static inline void cbe_cpufreq_pmi_exit(void) {}
|
|
#endif
|