ppc_cbe_cpufreq.h 583 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * ppc_cbe_cpufreq.h
  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. #include <linux/cpufreq.h>
  13. #include <linux/types.h>
  14. int cbe_cpufreq_set_pmode(int cpu, unsigned int pmode);
  15. int cbe_cpufreq_get_pmode(int cpu);
  16. int cbe_cpufreq_set_pmode_pmi(int cpu, unsigned int pmode);
  17. #if IS_ENABLED(CONFIG_CPU_FREQ_CBE_PMI)
  18. extern bool cbe_cpufreq_has_pmi;
  19. #else
  20. #define cbe_cpufreq_has_pmi (0)
  21. #endif