Skip to content

Commit 94cf946

Browse files
geertuhorms
authored andcommitted
ARM: shmobile: Restrict TWD support to SoCs that have it
Currently support for the ARM Timer and Watchdog Unit is included unconditionally, while only some Renesas multicore Cortex-A9 SoCs have a TWD. This decreases kernel image size by ca. 2 KiB on SoCs without a TWD. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent af3a03c commit 94cf946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/mach-shmobile/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ menuconfig ARCH_RENESAS
3030
depends on ARCH_MULTI_V7 && MMU
3131
select ARM_GIC
3232
select GPIOLIB
33-
select HAVE_ARM_TWD if SMP
3433
select NO_IOPORT_MAP
3534
select PINCTRL
3635
select SOC_BUS
@@ -95,6 +94,7 @@ config ARCH_R8A7778
9594
config ARCH_R8A7779
9695
bool "R-Car H1 (R8A77790)"
9796
select HAVE_ARM_SCU if SMP
97+
select HAVE_ARM_TWD if SMP
9898
select ARCH_RCAR_GEN1
9999

100100
config ARCH_R8A7790
@@ -137,5 +137,6 @@ config ARCH_SH73A0
137137
bool "SH-Mobile AG5 (R8A73A00)"
138138
select ARCH_RMOBILE
139139
select HAVE_ARM_SCU if SMP
140+
select HAVE_ARM_TWD if SMP
140141
select RENESAS_INTC_IRQPIN
141142
endif

0 commit comments

Comments
 (0)