Commit 5df9affb authored by Maxime Ripard's avatar Maxime Ripard Committed by Daniel Lezcano

clocksource: sun4i: Increase a bit the clock event and sources rating

We want to keep this driver as the default provider of the clock events
and source, yet some other driver might fit in the "desired" category of
ratings. Hence, we need to increase a bit the rating so that we can have
more flexibility in the ratings we choose.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: default avatarEmilio López <emilio@elopez.com.ar>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 2c28f32c
...@@ -114,7 +114,7 @@ static int sun4i_clkevt_next_event(unsigned long evt, ...@@ -114,7 +114,7 @@ static int sun4i_clkevt_next_event(unsigned long evt,
static struct clock_event_device sun4i_clockevent = { static struct clock_event_device sun4i_clockevent = {
.name = "sun4i_tick", .name = "sun4i_tick",
.rating = 300, .rating = 350,
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
.set_mode = sun4i_clkevt_mode, .set_mode = sun4i_clkevt_mode,
.set_next_event = sun4i_clkevt_next_event, .set_next_event = sun4i_clkevt_next_event,
...@@ -172,7 +172,7 @@ static void __init sun4i_timer_init(struct device_node *node) ...@@ -172,7 +172,7 @@ static void __init sun4i_timer_init(struct device_node *node)
setup_sched_clock(sun4i_timer_sched_read, 32, rate); setup_sched_clock(sun4i_timer_sched_read, 32, rate);
clocksource_mmio_init(timer_base + TIMER_CNTVAL_REG(1), node->name, clocksource_mmio_init(timer_base + TIMER_CNTVAL_REG(1), node->name,
rate, 300, 32, clocksource_mmio_readl_down); rate, 350, 32, clocksource_mmio_readl_down);
ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); ticks_per_jiffy = DIV_ROUND_UP(rate, HZ);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment