posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun

do_schedule_next_timer() sets info->si_overrun = timr->it_overrun_last,
this discards the already accumulated overruns.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Mark McLoughlin <[email protected]>
Cc: Oliver Pinter <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: [email protected]
Cc: Andrew Morton <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
Oleg Nesterov 2008-07-23 20:52:05 +04:00 • committed by Thomas Gleixner
commit 54da117492

View file

@ -289,7 +289,7 @@ void do_schedule_next_timer(struct siginfo *info)
else
schedule_next_timer(timr);
info->si_overrun = timr->it_overrun_last;
info->si_overrun += timr->it_overrun_last;
}
if (timr)