Skip to content

Commit

Permalink
[MIPS] EV64120: Fix timer initialization for HZ != 100.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Nov 6, 2006
1 parent ff28cbd commit 325d08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/gt64120/common/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void gt64120_time_init(void)
/* Disable timer first */
GT_WRITE(GT_TC_CONTROL_OFS, 0);
/* Load timer value for 100 Hz */
GT_WRITE(GT_TC3_OFS, Sys_clock / 100);
GT_WRITE(GT_TC3_OFS, Sys_clock / HZ);

/*
* Create the IRQ structure entry for the timer. Since we're too early
Expand Down

0 comments on commit 325d08d

Please sign in to comment.