[MIPS] PNX8550: Fix system timer support
the patch inlined below restores proper time accounting for PNX8550-based boards. It also gets rid of #ifdef in the generic code which becomes unnecessary then. It's functionally identical to the previous patch with the same name but it has minor comments from Atsushi and Sergei taken into account. Signed-off-by: Vitaly Wool <vwool@ru.mvista.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
33b06b513e
commit
2dbda7dcec
2 changed files with 37 additions and 9 deletions
|
@ -94,10 +94,8 @@ static void c0_timer_ack(void)
|
|||
{
|
||||
unsigned int count;
|
||||
|
||||
#ifndef CONFIG_SOC_PNX8550 /* pnx8550 resets to zero */
|
||||
/* Ack this timer interrupt and set the next one. */
|
||||
expirelo += cycles_per_jiffy;
|
||||
#endif
|
||||
write_c0_compare(expirelo);
|
||||
|
||||
/* Check to see if we have missed any timer interrupts. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue