cpufreq_ondemand.h 655 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Header file for CPUFreq ondemand governor and related code.
  4. *
  5. * Copyright (C) 2016, Intel Corporation
  6. * Author: Rafael J. Wysocki <[email protected]>
  7. */
  8. #include "cpufreq_governor.h"
  9. struct od_policy_dbs_info {
  10. struct policy_dbs_info policy_dbs;
  11. unsigned int freq_lo;
  12. unsigned int freq_lo_delay_us;
  13. unsigned int freq_hi_delay_us;
  14. unsigned int sample_type:1;
  15. };
  16. static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
  17. {
  18. return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
  19. }
  20. struct od_dbs_tuners {
  21. unsigned int powersave_bias;
  22. };