Rafael J. Wysocki
3e33b1329c
cpufreq: Make cpufreq_online() call driver->offline() on errors
...
[ Upstream commit 3b7180573c250eb6e2a7eec54ae91f27472332ea ]
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: 91a12e91dc ("cpufreq: Allow light-weight tear down and bring up of CPUs")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Acked-by: Viresh Kumar <viresh.kumar@linaro.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-07-14 16:56:13 +02:00
..
2021-07-14 16:56:12 +02:00
2021-03-04 11:38:02 +01:00
2021-07-14 16:56:04 +02:00
2021-03-30 14:31:50 +02:00
2021-03-04 11:38:00 +01:00
2021-06-03 09:00:34 +02:00
2021-07-14 16:55:46 +02:00
2021-07-14 16:55:34 +02:00
2021-07-14 16:55:42 +02:00
2021-05-26 12:06:55 +02:00
2021-07-14 16:56:01 +02:00
2021-07-14 16:55:44 +02:00
2021-07-14 16:56:12 +02:00
2021-03-25 09:04:16 +01:00
2021-07-14 16:56:13 +02:00
2021-05-14 09:50:16 +02:00
2021-07-14 16:56:10 +02:00
2021-03-04 11:38:15 +01:00
2021-07-14 16:56:11 +02:00
2021-06-30 08:47:20 -04:00
2021-07-14 16:56:00 +02:00
2021-07-14 16:56:12 +02:00
2021-04-07 15:00:11 +02:00
2021-06-10 13:39:14 +02:00
2021-05-14 09:50:06 +02:00
2021-07-07 08:22:46 -04:00
2021-07-07 08:22:46 -04:00
2021-07-14 16:56:01 +02:00
2021-05-14 09:50:28 +02:00
2021-07-14 16:55:59 +02:00
2021-07-14 16:56:08 +02:00
2021-05-19 10:12:55 +02:00
2021-06-30 08:47:25 -04:00
2021-05-14 09:50:05 +02:00
2021-03-04 11:38:21 +01:00
2021-07-14 16:55:45 +02:00
2021-07-07 08:22:47 -04:00
2021-07-14 16:56:05 +02:00
2021-06-03 09:00:46 +02:00
2021-06-03 09:00:49 +02:00
2021-06-23 14:42:49 +02:00
2021-06-16 12:01:36 +02:00
2021-05-26 12:06:56 +02:00
2021-03-04 11:37:42 +01:00
2021-07-14 16:56:01 +02:00
2021-06-16 12:01:37 +02:00
2021-07-14 16:56:11 +02:00
2021-05-14 09:50:19 +02:00
2021-07-14 16:55:53 +02:00
2021-05-14 09:50:27 +02:00
2021-06-03 09:00:39 +02:00
2021-07-14 16:56:06 +02:00
2021-05-14 09:50:15 +02:00
2021-07-14 16:55:46 +02:00
2021-05-14 09:50:32 +02:00
2021-04-21 13:00:55 +02:00
2021-07-14 16:56:11 +02:00
2021-05-14 09:50:14 +02:00
2021-05-14 09:50:24 +02:00
2021-07-14 16:56:00 +02:00
2021-07-14 16:56:08 +02:00
2021-06-23 14:42:48 +02:00
2021-06-30 08:47:24 -04:00
2021-07-14 16:56:00 +02:00
2021-05-14 09:50:25 +02:00
2021-06-23 14:42:45 +02:00
2021-05-19 10:13:04 +02:00
2021-05-26 12:06:52 +02:00
2021-04-14 08:42:12 +02:00
2021-07-14 16:56:09 +02:00
2021-05-19 10:13:01 +02:00
2021-05-19 10:13:02 +02:00
2021-07-14 16:55:44 +02:00
2021-07-14 16:55:43 +02:00
2021-07-07 08:22:46 -04:00
2021-05-14 09:50:21 +02:00
2021-05-14 09:50:14 +02:00
2021-07-14 16:56:10 +02:00
2021-03-04 11:38:40 +01:00
2021-07-14 16:55:45 +02:00
2021-07-14 16:56:11 +02:00
2021-06-18 10:00:04 +02:00
2021-06-10 13:39:21 +02:00
2021-07-14 16:55:47 +02:00
2021-06-03 09:00:32 +02:00
2021-07-14 16:55:45 +02:00
2021-05-26 12:06:52 +02:00
2021-07-14 16:55:38 +02:00
2021-06-03 09:00:36 +02:00
2021-06-10 13:39:15 +02:00
2021-05-11 14:47:12 +02:00
2021-05-26 12:06:57 +02:00
2021-05-11 14:47:11 +02:00
2021-03-04 11:38:36 +01:00
2021-07-11 12:53:31 +02:00