Skip to contentSkip to conversation

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

PATCH In review Oleg Nesterov 1 participant 1 message Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 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.

kernel/posix-timers.c renamed from kernel/posix-timers.c~2_SNT_OVERRUN +1 -1
@@ -289,7 +289,7 @@ void do_schedule_next_timer(struct sigin
 		else
 			schedule_next_timer(timr);
 
-		info->si_overrun = timr->it_overrun_last;
+		info->si_overrun += timr->it_overrun_last;
 	}
 
 	if (timr)