original_kernel/arch/arm/mach-shmobile
Rob Herring 6050cb1c7a ARM: sh-mobile: Use of_cpu_node_to_id() to read CPU node 'reg'
Replace open coded CPU nodes reading of "reg" and translation to logical
ID with of_cpu_node_to_id().

The original code called of_parse_phandle() CONFIG_NR_CPUS times
regardless of the length of 'cpus'. Optimize the loop to bail out once
of_parse_phandle() fails as the end of 'cpus' property has been reached.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230327205228.573456-1-robh@kernel.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
2023-03-30 16:02:42 +02:00
..
Kconfig
Makefile
common.h
emev2.h
headsmp-apmu.S
headsmp-scu.S
headsmp.S
platsmp-apmu.c ARM: sh-mobile: Use of_cpu_node_to_id() to read CPU node 'reg' 2023-03-30 16:02:42 +02:00
platsmp-scu.c
platsmp.c
pm-rcar-gen2.c
r8a7779.h
rcar-gen2.h
regulator-quirk-rcar-gen2.c
setup-emev2.c
setup-r7s9210.c
setup-r7s72100.c
setup-r8a73a4.c
setup-r8a7740.c
setup-r8a7778.c
setup-r8a7779.c
setup-rcar-gen2.c
setup-sh73a0.c
sh73a0.h
smp-emev2.c
smp-r8a7779.c
smp-sh73a0.c
suspend.c
timer.c