arm: omap4: allow disabling MPU local timer if 32K timer is enabled
Subsystems (3)
PATCH 1/1 arm: omap4: allow disabling MPU local timer if 32K timer is enabled
With 32K gp timer, tick can be driven and system can run well, so allow MPU local timer to be disabled if someone requires it, otherwise MPU local timer is always chosen as the default clock_event_device.
--- arch/arm/mach-omap2/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Kconfig +1 -1
@@ -46,7 +46,7 @@ config ARCH_OMAP4 select CPU_V7 select ARM_GIC select HAVE_SMP - select LOCAL_TIMERS if SMP + select LOCAL_TIMERS if (SMP && !OMAP_32K_TIMER) select PL310_ERRATA_588369 select PL310_ERRATA_727915 select ARM_ERRATA_720789
Signature · 1 line
1.7.9
PATCH 1/1 arm: omap4: allow disabling MPU local timer if 32K timer is enabled
Quoted 3 lines · Ming Lei
With 32K gp timer, tick can be driven and system can run well, so allow MPU local timer to be disabled if someone requires it, otherwise MPU local timer is always chosen as the default
clock_event_device.
The point being?
What if you want to use NO_HZ?
PATCH 1/1 arm: omap4: allow disabling MPU local timer if 32K timer is enabled
Quoted 6 lines · Russell King - ARM Linux
Quoted 3 lines · Ming Lei
With 32K gp timer, tick can be driven and system can run well, so allow MPU local timer to be disabled if someone requires it, otherwise MPU local timer is always chosen as the default
clock_event_device.The point being?
IMO, 32K gp timer may be more energy-saving than MPU local timer because gp timer has much less clock frequency and only half interrupts generated in tick mode compared with mpu local timer.
Quoted 2 lines
What if you want to use
NO_HZ?
32K gp timer supports oneshot mode, so it should support NO_HZ. In my test .config, NO_HZ is enabled and system can run well.
thanks,
Signature · 1 line
Ming Lei
PATCH 1/1 arm: omap4: allow disabling MPU local timer if 32K timer is enabled
Quoted 14 lines · Ming Lei
Quoted 6 lines · Russell King - ARM Linux
Quoted 3 lines · Ming Lei
With 32K gp timer, tick can be driven and system can run well, so allow MPU local timer to be disabled if someone requires it, otherwise MPU local timer is always chosen as the default
clock_event_device.The point being?
IMO, 32K gp timer may be more energy-saving than MPU local timer because gp timer has much less clock frequency and only half interrupts generated in tick mode compared with mpu local timer.
Quoted 1 line
Quoted 4 lines
Quoted 1 line
What if you want to use
NO_HZ?32K gp timer supports oneshot mode, so it should support
NO_HZ. In my test .config,NO_HZis enabled and system can run well.
Have you actually checked the tick rate of your timer in /proc/interrupts? Have you checked /proc/timer_list to see what mode the system is in?
PATCH 1/1 arm: omap4: allow disabling MPU local timer if 32K timer is enabled
Quoted 2 lines · Russell King - ARM Linux
Have you actually checked the tick rate of your timer in
/proc/interrupts? Have you checked/proc/timer_listto see what mode the system is in?
After checking, the system works at periodic mode, but I still don't know why it can't be in one shot mode.
Seems a single clock_event_device can't work well at system with more than one CPU, so the patch doesn't make sense, please ignore it.
thanks,
Signature · 1 line
Ming Lei