diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-09-01 19:33:21 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-09-01 22:14:45 +0300 |
commit | 4adcf2e5829f83cbab581ba376abb7cb6404eeb3 (patch) | |
tree | 3eedf6aaf0b1d36954d852cfc019c2e54c4d9f81 /drivers/base/topology.c | |
parent | b388eb58ce47484a330681f09d1d058fe122c744 (diff) | |
download | linux-4adcf2e5829f83cbab581ba376abb7cb6404eeb3.tar.xz |
cpufreq: intel_pstate: Add ->offline and ->online callbacks
Add ->offline and ->online driver callbacks to prepare for taking a
CPU offline and to restore its working configuration when it goes
back online, respectively, to avoid invoking the ->init callback on
every CPU online which is quite a bit of unnecessary overhead.
Define ->offline and ->online so that they can be used in the
passive mode as well as in the active mode and because ->offline
will do the majority of ->stop_cpu work, the passive mode does
not need that callback any more, so drop it from there.
Also modify the active mode ->suspend and ->resume callbacks to
prevent them from interfering with the new ->offline and ->online
ones in case the latter are invoked withing the system-wide suspend
and resume code flow and make the passive mode use them too.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'drivers/base/topology.c')
0 files changed, 0 insertions, 0 deletions