diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 00:09:18 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 23:12:11 +0200 |
commit | ff35f02ea1e3ac4e774f2784c1444fba4cf8e16a (patch) | |
tree | ec30dbee27c8726263b3b83383849c1b9f2e1e25 /arch/arm/mach-shmobile | |
parent | cpufreq: intel_pstate: Fold intel_pstate_reset_all_pid() into the caller (diff) | |
download | linux-ff35f02ea1e3ac4e774f2784c1444fba4cf8e16a.tar.xz linux-ff35f02ea1e3ac4e774f2784c1444fba4cf8e16a.zip |
cpufreq: intel_pstate: Clean up intel_pstate_busy_pid_reset()
intel_pstate_busy_pid_reset() is the only caller of pid_reset(),
pid_p_gain_set(), pid_i_gain_set(), and pid_d_gain_set(). Moreover,
it passes constants as two parameters of pid_reset() and all of
the other routines above essentially contain the same code, so
fold all of them into the caller and drop unnecessary computations.
Introduce percent_fp() for converting integer values in percent
to fixed-point fractions and use it in the above code cleanup.
Finally, rename intel_pstate_busy_pid_reset() to
intel_pstate_pid_reset() as it also is used for the
initialization of PID parameters for every CPU and the
meaning of the "busy" part of the name is not particularly
clear.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-shmobile')
0 files changed, 0 insertions, 0 deletions