Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Christian Krafft | 74889e4 | 2007-07-20 21:39:22 +0200 | [diff] [blame] | 2 | /* |
Viresh Kumar | 6eb1c37 | 2013-03-25 11:20:23 +0530 | [diff] [blame] | 3 | * ppc_cbe_cpufreq.h |
Christian Krafft | 74889e4 | 2007-07-20 21:39:22 +0200 | [diff] [blame] | 4 | * |
| 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 | |
| 16 | int cbe_cpufreq_set_pmode(int cpu, unsigned int pmode); |
| 17 | int cbe_cpufreq_get_pmode(int cpu); |
| 18 | |
| 19 | int cbe_cpufreq_set_pmode_pmi(int cpu, unsigned int pmode); |
| 20 | |
Javier Martinez Canillas | 6de0dc4 | 2016-04-26 20:14:13 -0400 | [diff] [blame] | 21 | #if IS_ENABLED(CONFIG_CPU_FREQ_CBE_PMI) |
Christian Krafft | 74889e4 | 2007-07-20 21:39:22 +0200 | [diff] [blame] | 22 | extern bool cbe_cpufreq_has_pmi; |
Viresh Kumar | afe9690 | 2019-07-05 15:49:48 +0530 | [diff] [blame] | 23 | void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy); |
| 24 | void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy); |
| 25 | void cbe_cpufreq_pmi_init(void); |
| 26 | void cbe_cpufreq_pmi_exit(void); |
Christian Krafft | 74889e4 | 2007-07-20 21:39:22 +0200 | [diff] [blame] | 27 | #else |
| 28 | #define cbe_cpufreq_has_pmi (0) |
Viresh Kumar | afe9690 | 2019-07-05 15:49:48 +0530 | [diff] [blame] | 29 | static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {} |
| 30 | static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {} |
| 31 | static inline void cbe_cpufreq_pmi_init(void) {} |
| 32 | static inline void cbe_cpufreq_pmi_exit(void) {} |
Christian Krafft | 74889e4 | 2007-07-20 21:39:22 +0200 | [diff] [blame] | 33 | #endif |