Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277427
b: refs/heads/master
c: f5a54dd
h: refs/heads/master
i:
  277425: 3718d24
  277423: 3d45964
v: v3
  • Loading branch information
John Stultz committed Nov 22, 2011
1 parent 7389aca commit 0534c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 027f6ad7bfa97cf8f75e9d81c15256d828eb0809
refs/heads/master: f5a54dd7952e9032785cd1ef0dde72cd61025341
4 changes: 1 addition & 3 deletions trunk/drivers/clocksource/tcb_clksrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ static struct clocksource clksrc = {
.rating = 200,
.read = tc_get_cycles,
.mask = CLOCKSOURCE_MASK(32),
.shift = 18,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
};

Expand Down Expand Up @@ -256,7 +255,6 @@ static int __init tcb_clksrc_init(void)
best_divisor_idx = i;
}

clksrc.mult = clocksource_hz2mult(divided_rate, clksrc.shift);

printk(bootinfo, clksrc.name, CONFIG_ATMEL_TCB_CLKSRC_BLOCK,
divided_rate / 1000000,
Expand Down Expand Up @@ -292,7 +290,7 @@ static int __init tcb_clksrc_init(void)
__raw_writel(ATMEL_TC_SYNC, tcaddr + ATMEL_TC_BCR);

/* and away we go! */
clocksource_register(&clksrc);
clocksource_register_hz(&clksrc, divided_rate);

/* channel 2: periodic and oneshot timer support */
setup_clkevents(tc, clk32k_divisor_idx);
Expand Down

0 comments on commit 0534c3b

Please sign in to comment.