blob: 00cd8633b0d9df96f9381ca6c65342919f030b85 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Christian Krafft74889e42007-07-20 21:39:22 +02002/*
Viresh Kumar6eb1c372013-03-25 11:20:23 +05303 * ppc_cbe_cpufreq.h
Christian Krafft74889e42007-07-20 21:39:22 +02004 *
5 * This file contains the definitions used by the cbe_cpufreq driver.
6 *
7 * (C) Copyright IBM Deutschland Entwicklung GmbH 2005-2007
8 *
9 * Author: Christian Krafft <krafft@de.ibm.com>
10 *
11 */
12
13#include <linux/cpufreq.h>
14#include <linux/types.h>
15
16int cbe_cpufreq_set_pmode(int cpu, unsigned int pmode);
17int cbe_cpufreq_get_pmode(int cpu);
18
19int cbe_cpufreq_set_pmode_pmi(int cpu, unsigned int pmode);
20
Javier Martinez Canillas6de0dc42016-04-26 20:14:13 -040021#if IS_ENABLED(CONFIG_CPU_FREQ_CBE_PMI)
Christian Krafft74889e42007-07-20 21:39:22 +020022extern bool cbe_cpufreq_has_pmi;
Viresh Kumarafe96902019-07-05 15:49:48 +053023void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy);
24void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy);
25void cbe_cpufreq_pmi_init(void);
26void cbe_cpufreq_pmi_exit(void);
Christian Krafft74889e42007-07-20 21:39:22 +020027#else
28#define cbe_cpufreq_has_pmi (0)
Viresh Kumarafe96902019-07-05 15:49:48 +053029static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {}
30static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {}
31static inline void cbe_cpufreq_pmi_init(void) {}
32static inline void cbe_cpufreq_pmi_exit(void) {}
Christian Krafft74889e42007-07-20 21:39:22 +020033#endif