Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277425
b: refs/heads/master
c: a139723
h: refs/heads/master
i:
  277423: 3d45964
v: v3
  • Loading branch information
John Stultz authored and John Stultz committed Nov 22, 2011
1 parent b5b53ea commit 3718d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 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: 60d687e7d4724a7e8826f6579ca036d4343a5386
refs/heads/master: a139723bec122053a94c80596c8b991b860ffb91
13 changes: 1 addition & 12 deletions trunk/arch/xtensa/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ static struct clocksource ccount_clocksource = {
.rating = 200,
.read = ccount_read,
.mask = CLOCKSOURCE_MASK(32),
/*
* With a shift of 22 the lower limit of the cpu clock is
* 1MHz, where NSEC_PER_CCOUNT is 1000 or a bit less than
* 2^10: Since we have 32 bits and the multiplicator can
* already take up as much as 10 bits, this leaves us with
* remaining upper 22 bits.
*/
.shift = 22,
};

static irqreturn_t timer_interrupt(int irq, void *dev_id);
Expand All @@ -66,10 +58,7 @@ void __init time_init(void)
printk("%d.%02d MHz\n", (int)ccount_per_jiffy/(1000000/HZ),
(int)(ccount_per_jiffy/(10000/HZ))%100);
#endif
ccount_clocksource.mult =
clocksource_hz2mult(CCOUNT_PER_JIFFY * HZ,
ccount_clocksource.shift);
clocksource_register(&ccount_clocksource);
clocksource_register_hz(&ccount_clocksource, CCOUNT_PER_JIFFY * HZ);

/* Initialize the linux timer interrupt. */

Expand Down

0 comments on commit 3718d24

Please sign in to comment.