WSL2-Linux-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 ARM: shmobile: Drop selecting GPIOLIB and PINCTRL 2022-10-28 14:31:24 +02:00
Makefile ARM: shmobile: R-Mobile: Move pm-rmobile to drivers/soc/renesas/ 2018-11-30 11:29:11 +01:00
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 ARM: shmobile: Stop using __raw_*() I/O accessors 2020-11-23 09:54:59 +01:00
platsmp.c
pm-rcar-gen2.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
r8a7779.h
rcar-gen2.h ARM: shmobile: rcar-gen2: Make rcar_gen2_{timer_init, reserve}() static 2020-09-10 19:01:26 +02:00
regulator-quirk-rcar-gen2.c ARM: shmobile: rcar-gen2: Increase refcount for new reference 2022-07-05 09:08:35 +02:00
setup-emev2.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-r7s9210.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-r7s72100.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-r8a73a4.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-r8a7740.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-r8a7778.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-r8a7779.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-rcar-gen2.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
setup-sh73a0.c ARM: shmobile: Drop commas after dt_compat sentinels 2022-05-05 12:32:40 +02:00
sh73a0.h
smp-emev2.c
smp-r8a7779.c ARM: shmobile: Stop using __raw_*() I/O accessors 2020-11-23 09:54:59 +01:00
smp-sh73a0.c ARM: shmobile: Stop using __raw_*() I/O accessors 2020-11-23 09:54:59 +01:00
suspend.c
timer.c