Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Rafael J. Wysocki | 7d5a995 | 2016-02-18 18:40:14 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Header file for CPUFreq ondemand governor and related code. |
| 4 | * |
| 5 | * Copyright (C) 2016, Intel Corporation |
| 6 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
Rafael J. Wysocki | 7d5a995 | 2016-02-18 18:40:14 +0100 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include "cpufreq_governor.h" |
| 10 | |
| 11 | struct od_policy_dbs_info { |
| 12 | struct policy_dbs_info policy_dbs; |
Rafael J. Wysocki | 7d5a995 | 2016-02-18 18:40:14 +0100 | [diff] [blame] | 13 | unsigned int freq_lo; |
| 14 | unsigned int freq_lo_delay_us; |
| 15 | unsigned int freq_hi_delay_us; |
| 16 | unsigned int sample_type:1; |
| 17 | }; |
| 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 | } |
Rafael J. Wysocki | 47ebaac1 | 2016-02-18 18:41:36 +0100 | [diff] [blame] | 23 | |
| 24 | struct od_dbs_tuners { |
| 25 | unsigned int powersave_bias; |
| 26 | }; |