Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11647
b: refs/heads/master
c: 0fd6f71
h: refs/heads/master
i:
  11645: 255f826
  11643: 505b494
  11639: 2c8bb51
  11631: 52f1f2b
  11615: 44b19b6
  11583: 8c32a76
  11519: c5cb1be
v: v3
  • Loading branch information
Kumar Gala authored and Paul Mackerras committed Oct 26, 2005
1 parent 9fb8ed6 commit c8c2704
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab590ccb428f874bb8f9cec1265cc1f9cb38b601
refs/heads/master: 0fd6f717948083d480f38e97f62cc116faf0e534
11 changes: 11 additions & 0 deletions trunk/arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,17 @@ void __init generic_calibrate_decr(void)
ppc_proc_freq = *fp;
}
}
#ifdef CONFIG_BOOKE
/* Set the time base to zero */
mtspr(SPRN_TBWL, 0);
mtspr(SPRN_TBWU, 0);

/* Clear any pending timer interrupts */
mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS);

/* Enable decrementer interrupt */
mtspr(SPRN_TCR, TCR_DIE);
#endif
if (!node_found)
printk(KERN_ERR "WARNING: Estimating processor frequency "
"(not found)\n");
Expand Down

0 comments on commit c8c2704

Please sign in to comment.