Rafael J. Wysocki
be1283454b
cpufreq: intel_pstate: Fix fast-switch fallback path
...
When sugov_update_single_perf() falls back to the "frequency"
path due to the missing scale-invariance, it will call
cpufreq_driver_fast_switch() via sugov_fast_switch()
and the driver's ->fast_switch() callback will be invoked,
so it must not be NULL.
However, after commit a365ab6b9dfb ("cpufreq: intel_pstate: Implement
the ->adjust_perf() callback") intel_pstate sets ->fast_switch() to
NULL when it is going to use intel_cpufreq_adjust_perf(), which is a
mistake, because on x86 the scale-invariance may be turned off
dynamically, so modify it to retain the original ->adjust_perf()
callback pointer.
Fixes: a365ab6b9dfb ("cpufreq: intel_pstate: Implement the ->adjust_perf() callback")
Reported-by: Kenneth R. Crudup <kenny@panix.com>
Tested-by: Kenneth R. Crudup <kenny@panix.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2020-12-30 18:22:17 +01:00
..
2020-10-19 17:28:43 +02:00
2020-07-15 15:17:06 +02:00
2020-12-07 13:02:37 +05:30
2020-09-16 14:12:18 +05:30
2019-07-16 10:20:11 +02:00
2020-07-30 10:57:44 +05:30
2020-12-15 19:19:32 +01:00
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-12-11 19:53:58 +01:00
2020-07-02 13:03:30 +02:00
2020-12-07 13:02:37 +05:30
2020-12-09 11:21:11 +05:30
2020-03-12 15:43:52 +05:30
2020-01-27 10:33:33 +01:00
2020-12-15 19:24:18 +01: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
2020-07-15 15:17:06 +02:00
2020-01-27 10:33:33 +01:00
2020-12-07 13:02:37 +05:30
2019-05-21 10:50:45 +02:00
2020-09-10 16:36:09 +05:30
2020-04-28 14:26:20 +05:30
2020-12-30 18:22:17 +01:00
2020-10-27 18:45:34 +01:00
2020-12-07 13:02:38 +05:30
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-07 13:02:37 +05:30
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-07 13:02:37 +05:30
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
2020-07-15 15:17:06 +02: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
2020-10-06 12:26:45 +02:00
2020-12-15 15:24:52 +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-12-08 11:22:17 +05:30
2020-12-07 13:02:37 +05:30
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-07 13:02:37 +05:30
2020-12-07 13:02:37 +05:30
2020-05-06 18:59:38 +02:00
2019-10-29 13:25:29 +01:00
2020-12-07 13:02:44 +05:30
2020-12-07 13:02:44 +05:30
2020-08-23 17:36:59 -05:00
2020-12-07 13:02:38 +05:30