Skip to content
Commit 47ca7b57 authored by qianfan Zhao's avatar qianfan Zhao Committed by Andre Przywara
Browse files

sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform



linux system will die if we offline one of the cpu on R40 based board:
eg: echo 0 > /sys/devices/system/cpu/cpu3/online

The reason is that the R40 version of sunxi_cpu_set_power always passes
0 for the CPU number, so we turn off CPU0, regardless of what CPU the
CPU_OFF request came for.

Fix this by passing the proper CPU number, as there are proper power
clamp registers for every of the four cores.

Signed-off-by: default avatarqianfan Zhao <qianfanguijin@163.com>
Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
parent e008e513
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment