4067e274d7663a53732a139460e7eebe0226d5c4
[15.05/openwrt.git] / target / linux / sunxi / patches-3.13 / 112-sun4i-clksrc-increase-a-bit-in-clockevent.patch
1 From a4eb936767bd6a63d54734b9ce48932609ce58eb Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime.ripard@free-electrons.com>
3 Date: Thu, 7 Nov 2013 12:01:48 +0100
4 Subject: [PATCH] clocksource: sun4i: Increase a bit the clock event and
5  sources rating
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 We want to keep this driver as the default provider of the clock events
11 and source, yet some other driver might fit in the "desired" category of
12 ratings. Hence, we need to increase a bit the rating so that we can have
13 more flexibility in the ratings we choose.
14
15 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
16 Tested-by: Emilio López <emilio@elopez.com.ar>
17 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
18 ---
19  drivers/clocksource/sun4i_timer.c | 4 ++--
20  1 file changed, 2 insertions(+), 2 deletions(-)
21
22 diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c
23 index e1878eb..a9b0b5b 100644
24 --- a/drivers/clocksource/sun4i_timer.c
25 +++ b/drivers/clocksource/sun4i_timer.c
26 @@ -114,7 +114,7 @@ static int sun4i_clkevt_next_event(unsigned long evt,
27  
28  static struct clock_event_device sun4i_clockevent = {
29         .name = "sun4i_tick",
30 -       .rating = 300,
31 +       .rating = 350,
32         .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
33         .set_mode = sun4i_clkevt_mode,
34         .set_next_event = sun4i_clkevt_next_event,
35 @@ -172,7 +172,7 @@ static void __init sun4i_timer_init(struct device_node *node)
36  
37         setup_sched_clock(sun4i_timer_sched_read, 32, rate);
38         clocksource_mmio_init(timer_base + TIMER_CNTVAL_REG(1), node->name,
39 -                             rate, 300, 32, clocksource_mmio_readl_down);
40 +                             rate, 350, 32, clocksource_mmio_readl_down);
41  
42         ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
43  
44 -- 
45 1.8.5.1
46