From 63de6189ffed07be412e0396ba8f5cfe0b18f615 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Mon, 22 Oct 2012 10:17:24 +0100 Subject: [PATCH] --- yaml --- r: 334833 b: refs/heads/master c: ad17a26e2273d18d27fcbb4a8d8a341ebb2d721f h: refs/heads/master i: 334831: 7c3fdbb82c67168e2efd0f97a1b37222d5b21b9a v: v3 --- [refs] | 2 +- trunk/arch/arm/kernel/smp_twd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index ebe8cbd877f1..2f58a83cebf9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5f40b909728ad784eb43aa309d3c4e9bdf050781 +refs/heads/master: ad17a26e2273d18d27fcbb4a8d8a341ebb2d721f diff --git a/trunk/arch/arm/kernel/smp_twd.c b/trunk/arch/arm/kernel/smp_twd.c index e1f906989bb8..b22d700fea27 100644 --- a/trunk/arch/arm/kernel/smp_twd.c +++ b/trunk/arch/arm/kernel/smp_twd.c @@ -42,10 +42,10 @@ static void twd_set_mode(enum clock_event_mode mode, switch (mode) { case CLOCK_EVT_MODE_PERIODIC: - /* timer load already set up */ ctrl = TWD_TIMER_CONTROL_ENABLE | TWD_TIMER_CONTROL_IT_ENABLE | TWD_TIMER_CONTROL_PERIODIC; - __raw_writel(twd_timer_rate / HZ, twd_base + TWD_TIMER_LOAD); + __raw_writel(DIV_ROUND_CLOSEST(twd_timer_rate, HZ), + twd_base + TWD_TIMER_LOAD); break; case CLOCK_EVT_MODE_ONESHOT: /* period set, and timer enabled in 'next_event' hook */