cpufreq_ondemand.h 801 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Header file for CPUFreq ondemand governor and related code.
  3. *
  4. * Copyright (C) 2016, Intel Corporation
  5. * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #include "cpufreq_governor.h"
  12. struct od_policy_dbs_info {
  13. struct policy_dbs_info policy_dbs;
  14. unsigned int freq_lo;
  15. unsigned int freq_lo_delay_us;
  16. unsigned int freq_hi_delay_us;
  17. unsigned int sample_type:1;
  18. };
  19. static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
  20. {
  21. return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
  22. }
  23. struct od_dbs_tuners {
  24. unsigned int powersave_bias;
  25. };