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-03-04 11:38:22 +01:00
2020-07-15 15:17:06 +02:00
2020-12-30 11:53:37 +01:00
2021-05-14 09:50:17 +02:00
2019-07-16 10:20:11 +02:00
2021-03-04 11:37:24 +01:00
2020-07-30 10:57:47 +05:30
2020-07-02 13:03:30 +02:00
2019-06-19 17:09:55 +02:00
2020-07-15 15:17:06 +02:00
2020-11-10 18:31:17 +01:00
2020-07-02 13:03:30 +02:00
2019-06-19 17:09:55 +02:00
2020-11-10 18:31:17 +01:00
2020-11-10 18:31:17 +01:00
2020-10-12 12:32:10 +02:00
2020-07-02 13:03:30 +02:00
2021-03-30 14:31:49 +02:00
2020-10-06 12:26:45 +02:00
2020-03-12 15:43:52 +05:30
2020-01-27 10:33:33 +01:00
2021-07-14 16:56:13 +02:00
2020-07-13 17:54:37 +02:00
2020-10-27 18:42:54 +01:00
2020-03-24 21:31:27 +01:00
2021-03-04 11:38:22 +01:00
2020-01-27 10:33:33 +01:00
2020-12-30 11:53:38 +01:00
2019-05-21 10:50:45 +02:00
2020-09-10 16:36:09 +05:30
2020-04-28 14:26:20 +05:30
2021-05-19 10:12:51 +02:00
2020-10-27 18:45:34 +01:00
2020-12-30 11:53:39 +01:00
2019-11-29 11:52:02 +01:00
2020-06-14 01:57:21 +09:00
2020-01-07 13:29:58 +05:30
2020-10-27 18:42:54 +01:00
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2020-12-30 11:53:38 +01:00
2020-04-16 17:34:23 +02:00
2020-08-04 12:44:53 +02:00
2019-07-18 09:49:30 +02:00
2020-12-30 11:53:38 +01:00
2018-09-19 14:56:44 -07:00
2020-06-24 17:16:42 +02:00
2020-08-23 17:36:59 -05:00
2020-07-15 15:17:06 +02:00
2020-07-15 15:17:06 +02:00
2019-07-18 09:49:30 +02:00
2019-07-18 09:49:30 +02:00
2020-03-24 21:31:27 +01:00
2020-03-24 21:31:27 +01:00
2019-05-30 11:26:39 -07:00
2021-01-17 14:17:00 +01:00
2019-06-05 17:37:08 +02:00
2020-10-08 21:17:16 +11:00
2019-05-30 11:26:32 -07:00
2019-10-21 02:05:21 +02:00
2019-08-26 10:02:01 +02:00
2019-08-26 10:02:01 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:32 -07:00
2021-03-17 17:06:33 +01:00
2020-12-30 11:53:38 +01:00
2020-05-07 10:47:27 +05:30
2019-06-13 08:58:22 +05:30
2020-08-20 17:52:05 +02:00
2020-08-20 17:53:22 +02:00
2019-10-23 08:53:23 +05:30
2020-08-20 17:53:22 +02:00
2020-08-20 17:53:22 +02:00
2020-01-07 13:31:01 +05:30
2020-08-20 17:53:22 +02:00
2020-09-16 14:12:18 +05:30
2019-07-16 10:20:11 +02:00
2019-07-18 09:49:30 +02:00
2020-03-24 21:31:27 +01:00
2020-11-23 10:15:56 +05:30
2020-12-30 11:53:38 +01:00
2019-06-19 17:09:07 +02:00
2020-01-27 10:33:33 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-07-16 10:20:11 +02:00
2020-03-24 21:31:27 +01:00
2020-03-24 21:31:27 +01:00
2020-10-28 18:04:07 +01:00
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2020-12-30 11:53:38 +01:00
2020-12-30 11:53:38 +01:00
2017-07-22 02:20:59 +02:00
2020-05-06 18:59:38 +02:00
2019-10-29 13:25:29 +01:00
2020-11-17 10:04:21 +05:30
2020-08-21 20:17:01 +02:00
2020-08-23 17:36:59 -05:00
2020-12-30 11:53:38 +01:00