diff options
| author | Rafael J. Wysocki <[email protected]> | 2021-06-22 19:11:39 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-06-23 17:40:56 +0000 |
| commit | 3b7180573c250eb6e2a7eec54ae91f27472332ea (patch) | |
| tree | ccf0289cc800208fe8bf6777abaf17e54d080d41 /lib/dump_stack.c | |
| parent | Merge back cpufreq material for v5.14. (diff) | |
| download | kernel-3b7180573c250eb6e2a7eec54ae91f27472332ea.tar.gz kernel-3b7180573c250eb6e2a7eec54ae91f27472332ea.zip | |
cpufreq: Make cpufreq_online() call driver->offline() on errors
In the CPU removal path the ->offline() callback provided by the
driver is always invoked before ->exit(), but in the cpufreq_online()
error path it is not, so ->exit() is expected to somehow know the
context in which it has been called and act accordingly.
That is less than straightforward, so make cpufreq_online() invoke
the driver's ->offline() callback, if present, on errors before
->exit() too.
This only potentially affects intel_pstate.
Fixes: 91a12e91dc39 ("cpufreq: Allow light-weight tear down and bring up of CPUs")
Signed-off-by: Rafael J. Wysocki <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions
