Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279799
b: refs/heads/master
c: 7c324d8
h: refs/heads/master
i:
  279797: d79b14d
  279795: 431f590
  279791: 3c1c975
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Dec 23, 2011
1 parent 8097e8e commit fd4336e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4fd7f9b128107034fa925b6877fae3c275f0da86
refs/heads/master: 7c324d837f214290febac87da6815dff1ed41d04
7 changes: 1 addition & 6 deletions trunk/arch/arm/common/timer-sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ static int sp804_set_next_event(unsigned long next,
}

static struct clock_event_device sp804_clockevent = {
.shift = 32,
.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT,
.set_mode = sp804_set_mode,
.set_next_event = sp804_set_next_event,
Expand All @@ -169,13 +168,9 @@ void __init sp804_clockevents_init(void __iomem *base, unsigned int irq,

clkevt_base = base;
clkevt_reload = DIV_ROUND_CLOSEST(rate, HZ);

evt->name = name;
evt->irq = irq;
evt->mult = div_sc(rate, NSEC_PER_SEC, evt->shift);
evt->max_delta_ns = clockevent_delta2ns(0xffffffff, evt);
evt->min_delta_ns = clockevent_delta2ns(0xf, evt);

setup_irq(irq, &sp804_timer_irq);
clockevents_register_device(evt);
clockevents_config_and_register(evt, rate, 0xf, 0xffffffff);
}

0 comments on commit fd4336e

Please sign in to comment.