[TICK] tick-common: Fix one-shot handling in tick_handle_periodic().
authorDavid S. Miller <davem@sunset.davemloft.net>
Sun, 25 Feb 2007 06:11:42 +0000 (22:11 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 26 Feb 2007 19:14:15 +0000 (11:14 -0800)
When clockevents_program_event() is given an expire time in the
past, it does not update dev->next_event, so this looping code
would loop forever once the first in-the-past expiration time
was used.

Keep advancing "next" locally to fix this bug.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/time/tick-common.c

Simple merge