mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 22:53:55 +08:00
74889e41d9
This patch reorganizes the code of the driver into three files. Two cbe_cpufreq_pmi.c and cbe_cpufreq_pervasive.c care about hardware. cbe_cpufreq.c contains the logic. There is no changed behaviour, except that the PMI related function is now located in a seperate module cbe_cpufreq_pmi. This module will be required by cbe_cpufreq, if CONFIG_CBE_CPUFREQ_PMI has been set. Signed-off-by: Christian Krafft <krafft@de.ibm.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
25 lines
578 B
C
25 lines
578 B
C
/*
|
|
* 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 defined(CONFIG_CBE_CPUFREQ_PMI) || defined(CONFIG_CBE_CPUFREQ_PMI_MODULE)
|
|
extern bool cbe_cpufreq_has_pmi;
|
|
#else
|
|
#define cbe_cpufreq_has_pmi (0)
|
|
#endif
|