Re: [RFC] mod_timer() helper functions?

From: Chris Peterson
Date: Sun May 17 2009 - 03:51:15 EST


>> Reviewing the kernel's nearly one-thousand calls to mod_timer(), there
>> are three basic patterns:
>>
>> Â* multi-second timeouts
>> Â* millisecond timeouts
>> Â* +1 jiffie ASAP events
>>

Is there a functional difference between the following "expire this
timer ASAP" statements?

mod_timer(timer, jiffies + 1); /* 48 uses */
mod_timer(timer, jiffies); /* 44 uses */
mod_timer(timer, jiffies - 1); /* 6 uses */


chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/