projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01e0daa
)
mac80211_hwsim: use CLOCK_MONOTONIC_RAW
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 18 Nov 2013 16:23:26 +0000
(17:23 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Mon, 2 Dec 2013 10:51:49 +0000
(11:51 +0100)
The beacon timers really shouldn't use any clock that is
subject to adjustments from userspace, particularly not
CLOCK_REALTIME. Use CLOCK_MONOTONIC_RAW instead.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mac80211_hwsim.c
b/drivers/net/wireless/mac80211_hwsim.c
index
bcc7d82
..
ab87556
100644
(file)
--- a/
drivers/net/wireless/mac80211_hwsim.c
+++ b/
drivers/net/wireless/mac80211_hwsim.c
@@
-2580,7
+2580,7
@@
static int __init init_mac80211_hwsim(void)
tasklet_hrtimer_init(&data->beacon_timer,
mac80211_hwsim_beacon,
- CLOCK_
REALTIME
, HRTIMER_MODE_ABS);
+ CLOCK_
MONOTONIC_RAW
, HRTIMER_MODE_ABS);
list_add_tail(&data->list, &hwsim_radios);
}