upgrade 3.13 targets to 3.13.2, refresh patches
[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 --- a/drivers/clocksource/sun4i_timer.c
23 +++ b/drivers/clocksource/sun4i_timer.c
24 @@ -114,7 +114,7 @@ static int sun4i_clkevt_next_event(unsig
25  
26  static struct clock_event_device sun4i_clockevent = {
27         .name = "sun4i_tick",
28 -       .rating = 300,
29 +       .rating = 350,
30         .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
31         .set_mode = sun4i_clkevt_mode,
32         .set_next_event = sun4i_clkevt_next_event,
33 @@ -172,7 +172,7 @@ static void __init sun4i_timer_init(stru
34  
35         setup_sched_clock(sun4i_timer_sched_read, 32, rate);
36         clocksource_mmio_init(timer_base + TIMER_CNTVAL_REG(1), node->name,
37 -                             rate, 300, 32, clocksource_mmio_readl_down);
38 +                             rate, 350, 32, clocksource_mmio_readl_down);
39  
40         ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
41