Quentin Perret 0e141d1c65 cpufreq: scmi: Fix frequency invariance in slow path
The scmi-cpufreq driver calls the arch_set_freq_scale() callback on
frequency changes to provide scale-invariant load-tracking signals to
the scheduler. However, in the slow path, it does so while specifying
the current and max frequencies in different units, hence resulting in a
broken freq_scale factor.

Fix this by passing all frequencies in KHz, as stored in the CPUFreq
frequency table.

Fixes: 99d6bdf33877 (cpufreq: add support for CPU DVFS based on SCMI message protocol)
Signed-off-by: Quentin Perret <quentin.perret@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: 4.17+ <stable@vger.kernel.org> # v4.17+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-01-09 12:10:25 +01:00
..
2018-11-16 09:31:59 -06:00
2018-10-29 15:16:01 -07:00
2018-10-27 09:24:24 -07:00
2018-12-03 17:40:18 +01:00
2018-10-16 11:13:50 +02:00
2018-12-21 09:05:28 -08:00
2018-12-25 11:48:26 -08:00
2018-12-14 15:36:56 +01:00
2018-10-11 12:12:55 +02:00
2018-12-25 11:04:17 -08:00
2018-12-25 11:04:17 -08:00
2018-12-12 09:39:54 -05:00
2018-12-25 13:11:30 -08:00
2018-09-25 13:19:52 -07:00
2018-12-25 12:49:46 -08:00
2018-11-09 16:41:58 -06:00
2018-10-26 14:36:21 -07:00
2018-10-22 17:30:06 +01:00
2018-12-25 13:19:10 -08:00
2018-10-29 15:16:01 -07:00
2018-12-02 20:55:23 -08:00
2018-12-22 15:03:00 -08:00
2018-10-31 08:54:16 -07:00
2018-11-28 08:33:55 -08:00
2018-12-25 13:11:30 -08:00
2018-10-11 09:16:44 -07:00
2018-12-11 14:23:17 +01:00
2018-12-25 11:04:17 -08:00
2018-10-31 11:01:38 -07:00
2018-12-25 11:48:26 -08:00
2018-09-14 15:25:57 +02:00
2018-12-02 12:15:55 -08:00
2018-11-12 10:33:49 +01:00
2018-11-12 10:33:49 +01:00