• Rafael J. Wysocki's avatar
    cpufreq: governor: Move rate_mult to struct policy_dbs · 57dc3bcd
    Rafael J. Wysocki authored
    The rate_mult field in struct od_cpu_dbs_info_s is used by the code
    shared with the conservative governor and to access it that code
    has to do an ugly governor type check.  However, first of all it
    is ever only used for policy->cpu, so it is per-policy rather than
    per-CPU and second, it is initialized to 1 by cpufreq_governor_start(),
    so if the conservative governor never modifies it, it will have no
    effect on the results of any computations.
    
    For these reasons, move rate_mult to struct policy_dbs_info (as a
    common field).
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    57dc3bcd
cpufreq_ondemand.c 14.4 KB