blob: 640ea4e971062334d6fee6bfe2c1b68ba654e9b2 [file] [log] [blame]
Rafael J. Wysocki7d5a9952016-02-18 18:40:14 +01001/*
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
12#include "cpufreq_governor.h"
13
14struct od_policy_dbs_info {
15 struct policy_dbs_info policy_dbs;
Rafael J. Wysocki7d5a9952016-02-18 18:40:14 +010016 unsigned int freq_lo;
17 unsigned int freq_lo_delay_us;
18 unsigned int freq_hi_delay_us;
19 unsigned int sample_type:1;
20};
21
22static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
23{
24 return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
25}
Rafael J. Wysocki47ebaac2016-02-18 18:41:36 +010026
27struct od_dbs_tuners {
28 unsigned int powersave_bias;
29};