Thread (170 messages) 170 messages, 19 authors, 2012-09-16

[PATCH v2 28/31] arm64: Generic timers support

From: Santosh Shilimkar <hidden>
Date: 2012-08-17 10:21:29
Also in: linux-arch, lkml

On Tuesday 14 August 2012 11:22 PM, Catalin Marinas wrote:
From: Marc Zyngier<redacted>

This patch adds support for the ARM generic timers with A64 instructions
for accessing the timer registers. It uses the physical counter as the
clock source and the virtual counter as sched_clock.

The timer frequency can be specified via DT or read from the CNTFRQ_EL0
register. The physical counter is also accessible from user space
allowing fast gettimeofday() implementation.

Signed-off-by: Marc Zyngier<redacted>
Signed-off-by: Will Deacon<redacted>
Signed-off-by: Catalin Marinas<catalin.marinas@arm.com>
---
[..]
quoted hunk ↗ jump to hunk
diff --git a/drivers/clocksource/arm_generic.c b/drivers/clocksource/arm_generic.c
new file mode 100644
index 0000000..05c898c
--- /dev/null
+++ b/drivers/clocksource/arm_generic.c
[..]
quoted hunk ↗ jump to hunk
+
+static void __cpuinit arch_timer_setup(struct clock_event_device *clk)
+{
+	/* Let's make sure the timer is off before doing anything else */
+	arch_timer_stop();
+
+	clk->features = CLOCK_EVT_FEAT_ONESHOT;
Are these CPU timers wakeup capable or we need the wakeup capable
broadcast timer for low power wakeups ?
In that case C3STOP would be needed here.

Regards
santosh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help