Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295306
b: refs/heads/master
c: 754d5c2
h: refs/heads/master
v: v3
  • Loading branch information
Jonas Bonn committed Feb 17, 2012
1 parent 0fd9c15 commit 3c52355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 17425275112960af0dc9882c06c343d3b6ec8dc9
refs/heads/master: 754d5c2bf65847f7ff4e0047a830154abe666112
13 changes: 5 additions & 8 deletions trunk/arch/openrisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,13 @@ irqreturn_t __irq_entry timer_interrupt(struct pt_regs *regs)

static __init void openrisc_clockevent_init(void)
{
clockevents_calc_mult_shift(&clockevent_openrisc_timer,
cpuinfo.clock_frequency, 4);
clockevent_openrisc_timer.cpumask = cpumask_of(0);

/* We only have 28 bits */
clockevent_openrisc_timer.max_delta_ns =
clockevent_delta2ns((u32) 0x0fffffff, &clockevent_openrisc_timer);
clockevent_openrisc_timer.min_delta_ns =
clockevent_delta2ns(1, &clockevent_openrisc_timer);
clockevent_openrisc_timer.cpumask = cpumask_of(0);
clockevents_register_device(&clockevent_openrisc_timer);
clockevents_config_and_register(&clockevent_openrisc_timer,
cpuinfo.clock_frequency,
100, 0x0fffffff);

}

/**
Expand Down

0 comments on commit 3c52355

Please sign in to comment.