Skip to contentSkip to conversation

ARM: shmobile: Remove non-existent LOCAL_TIMERS

PATCH New Alexander Shiyan 2 participants 2 messages Nov 6, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 ARM: shmobile: Remove non-existent LOCAL_TIMERS

---
 arch/arm/mach-shmobile/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/Kconfig +1 -1
index a4a4b75..2de4fb8 100644
@@ -4,7 +4,7 @@ config ARCH_SHMOBILE_MULTI
 	select CPU_V7
 	select GENERIC_CLOCKEVENTS
 	select HAVE_ARM_SCU if SMP
-	select HAVE_ARM_TWD if LOCAL_TIMERS
+	select HAVE_ARM_TWD if SMP
 	select HAVE_SMP
 	select ARM_GIC
 	select MIGHT_HAVE_CACHE_L2X0
Signature · 1 line
1.8.1.5
maintainer
#1 lore raw

PATCH 2/3 ARM: shmobile: Remove non-existent LOCAL_TIMERS

Hi Alex,

Quoted 11 lines · Alexander Shiyan
---
 arch/arm/mach-shmobile/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/Kconfig +0 -0
index a4a4b75..2de4fb8 100644

arch/arm/mach-shmobile/Kconfig config ARCH_SHMOBILE_MULTI · line 10

Quoted 8 lines
arch/arm/mach-shmobile/Kconfig +1 -1
@@ -4,7 +4,7 @@ config ARCH_SHMOBILE_MULTI
        select CPU_V7
        select GENERIC_CLOCKEVENTS
        select HAVE_ARM_SCU if SMP
-       select HAVE_ARM_TWD if LOCAL_TIMERS
+       select HAVE_ARM_TWD if SMP
        select HAVE_SMP
        select ARM_GIC
        select MIGHT_HAVE_CACHE_L2X0

Thanks for your patch. I'm not sure if I 100% agree with the change above, but it may be correct depending on what is expected of the TWD driver.

In mach-shmobile we have a couple of Cortex-A9 SoCs with one or more CPU cores. What I can tell by the Linux TWD driver only SMP operation is supported. This seems different from the Cortex-A15/A7 architected timer that also supports UP mode.

We use our Renesas-specific timers for single core and multi core operation and opt-in with local timers when those are enabled by the kernel configuration and DT and/or C support code. TWD is used in SMP-mode only today. If possible I'd also like to use the TWD for UP operation on the Cortex-A9 single core SoCs, but the above change is not really aligned with that. Perhaps my expectation is too high, I'm not sure.

Has anyone use TWD with single core Cortex-A9 or multi-core Cortex-A9 in UP mode? Is there a software or hardware limitation why it can't be used with a single mode?

Cheers,

/ magnus