Rafael J. Wysocki
552abb884e
cpufreq: Fix up cpufreq_boost_set_sw()
...
After commit 18c49926c4
("cpufreq: Add QoS requests for userspace
constraints") the return value of freq_qos_update_request(), that can
be 1, passed by cpufreq_boost_set_sw() to its caller sometimes
confuses the latter, which only expects to see 0 or negative error
codes, so notice that cpufreq_boost_set_sw() can return an error code
(which should not be -EINVAL for that matter) as soon as the first
policy without a frequency table is found (because either all policies
have a frequency table or none of them have it) and rework it to meet
its caller's expectations.
Fixes: 18c49926c4
("cpufreq: Add QoS requests for userspace constraints")
Reported-by: Serge Semin <Sergey.Semin@baikalelectronics.ru >
Reported-by: Xiongfeng Wang <wangxiongfeng2@huawei.com >
Acked-by: Viresh Kumar <viresh.kumar@linaro.org >
Cc: 5.3+ <stable@vger.kernel.org > # 5.3+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2020-05-18 13:01:28 +02:00
..
2020-03-24 21:31:27 +01:00
2020-03-24 21:31:27 +01:00
2019-07-22 11:12:15 +05:30
2019-06-03 11:26:38 +05:30
2019-07-16 10:20:11 +02:00
2020-01-20 13:23:34 +05:30
2020-01-27 10:33:33 +01:00
2019-11-07 07:00:26 +01:00
2019-06-19 17:09:55 +02:00
2019-11-21 07:33:25 +01:00
2019-06-19 17:09:55 +02:00
2019-11-07 07:00:26 +01:00
2019-06-19 17:09:55 +02:00
2019-11-07 07:00:26 +01:00
2019-11-07 07:00:26 +01:00
2020-03-14 12:07:38 +01:00
2019-11-07 07:00:26 +01:00
2020-04-28 09:45:55 +05:30
2020-03-12 15:43:52 +05:30
2020-03-12 15:43:52 +05:30
2020-01-27 10:33:33 +01:00
2020-05-18 13:01:28 +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
2020-01-27 10:33:33 +01:00
2020-01-27 10:33:33 +01:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2020-03-17 13:33:05 +05:30
2020-04-28 14:26:20 +05:30
2020-05-02 22:00:56 +02:00
2020-05-08 10:53:10 +05:30
2020-04-28 09:45:54 +05:30
2019-11-29 11:52:02 +01:00
2020-04-06 15:42:05 +02:00
2020-01-07 13:29:58 +05:30
2020-03-24 21:31:27 +01:00
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2019-07-16 10:20:11 +02:00
2020-01-23 00:39:37 +01:00
2019-10-21 16:23:58 +05:30
2019-07-18 09:49:30 +02:00
2019-08-22 11:31:04 +05:30
2018-09-19 14:56:44 -07:00
2019-07-18 09:49:30 +02:00
2020-03-24 21:31:27 +01:00
2019-07-23 09:49:10 +02:00
2020-01-31 14:36:35 -08: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-03-24 21:31:27 +01:00
2019-06-05 17:37:08 +02:00
2020-03-25 12:09:34 +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
2019-11-07 07:00:26 +01:00
2020-05-04 10:42:44 +05:30
2020-05-07 10:47:27 +05:30
2019-06-13 08:58:22 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-23 08:53:23 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-01-07 13:31:01 +05:30
2019-06-19 17:09:55 +02:00
2020-01-07 13:31:01 +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
2019-12-24 11:36:26 +00:00
2019-10-21 16:23:58 +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
2019-05-30 11:26:39 -07:00
2019-05-30 11:26:39 -07:00
2020-03-24 21:31:27 +01:00
2019-06-05 17:37:04 +02:00
2019-11-05 15:06:49 +05:30
2017-07-22 02:20:59 +02:00
2019-07-16 10:20:11 +02:00
2019-10-29 13:25:29 +01:00
2020-01-07 13:29:58 +05:30
2020-02-12 09:40:41 +05:30
2020-01-27 10:33:33 +01:00
2019-12-09 11:52:50 +00:00