On Wed, Jun 25, 2008 at 5:58 PM, Pavel Roskin <proski@xxxxxxx> wrote: > >> + time_diff = jiffies - bss->last_update > mid_range ? >> + jiffies - bss->last_update : >> + bss->last_update - jiffies; > > That's pretty hairy. Do we really lack a function to calculate time > difference? what about elapsed_jiffies() in iwl-helpers.h ?... should be moved to a generic place (include/linux/jiffies.h) so that other users can access it. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html