diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-12-25 07:14:37 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-01-19 08:18:09 -0500 |
commit | 7241444209f88f804ea33483394a601c1afb1d64 (patch) | |
tree | 28f2b2dae11c5367182eec51d9ad2ff422217406 /net/batman-adv/main.h | |
parent | 1ad759d8479b4b28f2a6c874d380066cf987b341 (diff) |
batman-adv: a delayed_work has to be initialised once
A delayed_work struct does not need to be initialized each
every time before being enqueued. Therefore the
INIT_DELAYED_WORK() macro should be used during the
initialization process only.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index d04b209a8295..af73d603455d 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -44,6 +44,8 @@ | |||
44 | #define BATADV_TT_LOCAL_TIMEOUT 600000 /* in milliseconds */ | 44 | #define BATADV_TT_LOCAL_TIMEOUT 600000 /* in milliseconds */ |
45 | #define BATADV_TT_CLIENT_ROAM_TIMEOUT 600000 /* in milliseconds */ | 45 | #define BATADV_TT_CLIENT_ROAM_TIMEOUT 600000 /* in milliseconds */ |
46 | #define BATADV_TT_CLIENT_TEMP_TIMEOUT 600000 /* in milliseconds */ | 46 | #define BATADV_TT_CLIENT_TEMP_TIMEOUT 600000 /* in milliseconds */ |
47 | #define BATADV_TT_WORK_PERIOD 5000 /* 5 seconds */ | ||
48 | #define BATADV_ORIG_WORK_PERIOD 1000 /* 1 second */ | ||
47 | #define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ | 49 | #define BATADV_DAT_ENTRY_TIMEOUT (5*60000) /* 5 mins in milliseconds */ |
48 | /* sliding packet range of received originator messages in sequence numbers | 50 | /* sliding packet range of received originator messages in sequence numbers |
49 | * (should be a multiple of our word size) | 51 | * (should be a multiple of our word size) |