From: Martin Hundebøll Date: Thu, 8 Dec 2011 12:32:41 +0000 (+0100) Subject: batman-adv: Move is_out_of_time() to main.h for general use X-Git-Tag: v3.4-rc1~177^2~264^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a04ccd5970ec11f0b320971051435d86d3233c92;p=pandora-kernel.git batman-adv: Move is_out_of_time() to main.h for general use Both translation tables and network coding use timeouts to do house keeping, so we might as well share the function used to compare a timestamp+timeout with current time. For readability and simplicity, the function is renamed to has_timed_out() and uses time_is_before_jiffies() instead of time_after(). Signed-off-by: Martin Hundebøll Signed-off-by: Marek Lindner --- Reading git-diff-tree failed