cpufreq-dt.h 608 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2016 Linaro
  4. * Viresh Kumar <viresh.kumar@linaro.org>
  5. */
  6. #ifndef __CPUFREQ_DT_H__
  7. #define __CPUFREQ_DT_H__
  8. #include <linux/types.h>
  9. struct cpufreq_policy;
  10. struct cpufreq_dt_platform_data {
  11. bool have_governor_per_policy;
  12. unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
  13. unsigned int index);
  14. int (*target_intermediate)(struct cpufreq_policy *policy,
  15. unsigned int index);
  16. int (*suspend)(struct cpufreq_policy *policy);
  17. int (*resume)(struct cpufreq_policy *policy);
  18. };
  19. #endif /* __CPUFREQ_DT_H__ */