]> git.baikalelectronics.ru Git - kernel.git/commit
arch_topology: Fix putting invalid cpu clk
authorJeffy Chen <jeffy.chen@rock-chips.com>
Tue, 17 Mar 2020 06:33:08 +0000 (14:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 10:41:54 +0000 (11:41 +0100)
commitdd366bf932f02b794a5a6f49cfa724daafa3fe47
treeeed11a0193821720ee31e5a5a9f4d2c6927b6036
parentc23792cea308f4d63bfc5dc8fdee2939758606c9
arch_topology: Fix putting invalid cpu clk

Add a sanity check before putting the cpu clk.

Fixes: 14388a487c9c (“arch_topology: Adjust initial CPU capacities with current freq")
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Link: https://lore.kernel.org/r/20200317063308.23209-1-jeffy.chen@rock-chips.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/arch_topology.c