diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 00:07:15 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 23:12:09 +0200 |
commit | 4ddd0146c790e647a05ee5c734b82cb40ef26296 (patch) | |
tree | 0e033d9c3d97a53774fb85a6c19810d516919fe2 /Documentation/admin-guide/initrd.rst | |
parent | cpufreq: intel_pstate: Initialize pid_params statically (diff) | |
download | linux-4ddd0146c790e647a05ee5c734b82cb40ef26296.tar.xz linux-4ddd0146c790e647a05ee5c734b82cb40ef26296.zip |
cpufreq: intel_pstate: Fold intel_pstate_reset_all_pid() into the caller
There is only one caller of intel_pstate_reset_all_pid(), which is
pid_param_set() used in the debugfs interface only, and having that
code split does not make it particularly convenient to follow.
For this reason, move the body of intel_pstate_reset_all_pid() into
its caller and drop that function.
Also change the loop from for_each_online_cpu() (which is obviously
racy with respect to CPU offline/online) to for_each_possible_cpu(),
so that all PID parameters are reset for all CPUs regardless of their
online/offline status (to prevent, for example, a previously offline
CPU from going online with a stale set of PID parameters).
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/admin-guide/initrd.rst')
0 files changed, 0 insertions, 0 deletions