blob: 9d973519d669169b70c76e144a8c083bf880a818 [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;
23#else
24#define cbe_cpufreq_has_pmi (0)
25#endif