[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1380279457-14299-5-git-send-email-vgupta@synopsys.com>
Date: Fri, 27 Sep 2013 16:27:37 +0530
From: Vineet Gupta <Vineet.Gupta1@...opsys.com>
To: <linux-kernel@...r.kernel.org>, <linux-arch@...r.kernel.org>
CC: <arc-linux-dev@...opsys.com>, <u.kleine-koenig@...gutronix.de>,
Noam Camus <noamc@...hip.com>,
Gilad Ben-Yossef <gilad@...yossef.com>,
Vineet Gupta <Vineet.Gupta1@...opsys.com>
Subject: [PATCH 4/4] ARC: Use clockevents_config_and_register over clockevents_register_device
From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
clockevents_config_and_register is more clever and correct than doing it
by hand; so use it.
[vgupta: fixed build failure due to missing ; in patch]
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Signed-off-by: Vineet Gupta <vgupta@...opsys.com>
---
arch/arc/kernel/time.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/arch/arc/kernel/time.c b/arch/arc/kernel/time.c
index 0e51e69..3fde7de 100644
--- a/arch/arc/kernel/time.c
+++ b/arch/arc/kernel/time.c
@@ -227,12 +227,9 @@ void __attribute__((weak)) arc_local_timer_setup(unsigned int cpu)
{
struct clock_event_device *clk = &per_cpu(arc_clockevent_device, cpu);
- clockevents_calc_mult_shift(clk, arc_get_core_freq(), 5);
-
- clk->max_delta_ns = clockevent_delta2ns(ARC_TIMER_MAX, clk);
clk->cpumask = cpumask_of(cpu);
-
- clockevents_register_device(clk);
+ clockevents_config_and_register(clk, arc_get_core_freq(),
+ 0, ARC_TIMER_MAX);
/*
* setup the per-cpu timer IRQ handler - for all cpus
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists