Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230636
b: refs/heads/master
c: 1e2de47
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz authored and Hans-Christian Egtvedt committed Jan 13, 2011
1 parent 0123efb commit bc2b271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 992a88b62ca327f10d82dbad71a8c061d4229888
refs/heads/master: 1e2de47cddc70ae973cf468e2f2954b4ae80f4e3
5 changes: 1 addition & 4 deletions trunk/arch/avr32/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ static struct clocksource counter = {
.rating = 50,
.read = read_cycle_count,
.mask = CLOCKSOURCE_MASK(32),
.shift = 16,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};

Expand Down Expand Up @@ -123,9 +122,7 @@ void __init time_init(void)

/* figure rate for counter */
counter_hz = clk_get_rate(boot_cpu_data.clk);
counter.mult = clocksource_hz2mult(counter_hz, counter.shift);

ret = clocksource_register(&counter);
ret = clocksource_register_hz(&counter, counter_hz);
if (ret)
pr_debug("timer: could not register clocksource: %d\n", ret);

Expand Down

0 comments on commit bc2b271

Please sign in to comment.