mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
34ac5d7a1d
There is absolutely no need to keep a copy to the freq-table in 'struct od_policy_dbs_info'. Use policy->freq_table instead. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
30 lines
801 B
C
30 lines
801 B
C
/*
|
|
* Header file for CPUFreq ondemand governor and related code.
|
|
*
|
|
* Copyright (C) 2016, Intel Corporation
|
|
* Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include "cpufreq_governor.h"
|
|
|
|
struct od_policy_dbs_info {
|
|
struct policy_dbs_info policy_dbs;
|
|
unsigned int freq_lo;
|
|
unsigned int freq_lo_delay_us;
|
|
unsigned int freq_hi_delay_us;
|
|
unsigned int sample_type:1;
|
|
};
|
|
|
|
static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
|
|
{
|
|
return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
|
|
}
|
|
|
|
struct od_dbs_tuners {
|
|
unsigned int powersave_bias;
|
|
};
|