summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-27 02:00:38 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-27 02:00:38 +0100
commitc75d5c5d82146636560ad5b91f3544ae60fc1c57 (patch)
tree2ceb03ac95dd3f7889a2d45d72f9342e52fa7583
parentMerge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/ker... (diff)
parentsparc32: forced setting of mode of sun4m per-cpu timers (diff)
downloadlinux-c75d5c5d82146636560ad5b91f3544ae60fc1c57.tar.xz
linux-c75d5c5d82146636560ad5b91f3544ae60fc1c57.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc32: forced setting of mode of sun4m per-cpu timers
-rw-r--r--arch/sparc/kernel/sun4m_irq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/kernel/sun4m_irq.c b/arch/sparc/kernel/sun4m_irq.c
index 422c16dad1f6..e61165161dd3 100644
--- a/arch/sparc/kernel/sun4m_irq.c
+++ b/arch/sparc/kernel/sun4m_irq.c
@@ -399,6 +399,9 @@ static void __init sun4m_init_timers(irq_handler_t counter_fn)
timers_global = (void __iomem *)
(unsigned long) addr[num_cpu_timers];
+ /* Every per-cpu timer works in timer mode */
+ sbus_writel(0x00000000, &timers_global->timer_config);
+
sbus_writel((((1000000/HZ) + 1) << 10), &timers_global->l10_limit);
master_l10_counter = &timers_global->l10_count;