From: Guillaume Chazarain Date: Mon, 24 Jul 2006 06:37:24 +0000 (-0700) Subject: [PKT_SCHED]: Fix regression in PSCHED_TADD{,2}. X-Git-Tag: v2.6.18-rc3~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2266d8886f64c66e0a4e61e3e1c19dbc27ed00d4;p=pandora-kernel.git [PKT_SCHED]: Fix regression in PSCHED_TADD{,2}. In PSCHED_TADD and PSCHED_TADD2, if delta is less than tv.tv_usec (so, less than USEC_PER_SEC too) then tv_res will be smaller than tv. The affectation "(tv_res).tv_usec = __delta;" is wrong. The fix is to revert to the original code before 4ee303dfeac6451b402e3d8512723d3a0f861857 and change the 'if' in 'while'. [Shuya MAEDA: "while (__delta >= USEC_PER_SEC){ ... }" instead of "while (__delta > USEC_PER_SEC){ ... }"] Signed-off-by: Guillaume Chazarain Signed-off-by: David S. Miller --- Reading git-diff-tree failed