>Yes I agree, it doesn't really matter what value we return and `bound' >is most likely to be correct. I think we should also fix the unlikely >but still possible case when tv1.tv_usec is slightly smaller than >tv2.tv_usec. I know it is very unlikely but do_gettimeofday really >is not that reliable and we have users which rely on a positive >delta. Can you extend your patch to return abs(delta) for case 0 >in PSCHED_TDIFF_SAFE? >- >To unsubscribe from this list: send the line "unsubscribe linux-net" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html > > You're right. Here is the new patch. [SCHED] Fix range in PSCHED_TDIFF_SAFE to 0..bound Signed-off-by: Nicolas Dichtel