arch_topology: Adjust initial CPU capacities with current freq
authorJeffy Chen <jeffy.chen@rock-chips.com>
Mon, 13 Jan 2020 03:48:15 +0000 (11:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2020 08:08:44 +0000 (09:08 +0100)
commitb8fe128dad8f97cc9af7c55a264d1fc5ab677195
tree25c892594f1a7635cbefd7b614fef6651401e73e
parent847e33867b65fdc4747a15646d1fdb94e65740a6
arch_topology: Adjust initial CPU capacities with current freq

The CPU freqs are not supposed to change before cpufreq policies
properly registered, meaning that they should be used to calculate the
initial CPU capacities.

Doing this helps choosing the best CPU during early boot, especially
for the initramfs decompressing.

There's no functional changes for non-clk CPU DVFS mechanism.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Link: https://lore.kernel.org/r/20200113034815.25924-1-jeffy.chen@rock-chips.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c