mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
![Viresh Kumar](/assets/img/avatar_default.png)
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>
29 lines
801 B
C
29 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;
|
|
};
|