]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14388a487c9cf9dc05457f3cedff40b575d3702f
tree25c892594f1a7635cbefd7b614fef6651401e73e
parentb63561d9c8119687dd5abe0cb1aa7bba5b7a3c93
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