6de0dc4b53
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
24 lines
544 B
C
24 lines
544 B
C
/*
|
|
* 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;
|
|
#else
|
|
#define cbe_cpufreq_has_pmi (0)
|
|
#endif
|