diff options
author | Martin Hundebøll <martin@hundeboll.net> | 2011-12-08 12:32:41 (GMT) |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2012-02-16 18:50:19 (GMT) |
commit | a04ccd5970ec11f0b320971051435d86d3233c92 (patch) | |
tree | a57eaf54189eea3f63a30ee89a9be4e19513342e /net/batman-adv/hard-interface.c | |
parent | c51f9c09fabc96f23e449b5e39b1fc4e2cabcd85 (diff) | |
download | linux-a04ccd5970ec11f0b320971051435d86d3233c92.tar.xz |
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 <martin@hundeboll.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/hard-interface.c')
0 files changed, 0 insertions, 0 deletions