]> git.hungrycats.org Git - linux/commit
[PATCH] fix nanosleep() granularity bumps
authorAndrew Morton <akpm@digeo.com>
Thu, 20 Mar 2003 13:47:34 +0000 (05:47 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Mar 2003 13:47:34 +0000 (05:47 -0800)
commitd8e0b647b88df5c597426293ed8b9c79a34e8114
treeca6474e3a5fc96cf2a685d58d715aa5003aaf069
parente28b748d39af57a57c63e6815a3ecd20dbf7a3ef
[PATCH] fix nanosleep() granularity bumps

From: Tim Schmielau <tim@physik3.uni-rostock.de>

Fixes the problem wherein nanosleep() is sleeping for the wrong duration.

When starting out with timer_jiffies=0, the timer cascade is (unneccessarily)
triggered on the first timer interrupt, incrementing all the higher indices.
When starting with any other initial jiffies value, we miss that and end up
with all higher indices being off by one.
kernel/timer.c