]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: call drv_get_tsf() in sleepable context
authorThomas Pedersen <thomas@cozybit.com>
Sat, 6 Oct 2012 00:57:39 +0000 (17:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Oct 2012 19:06:02 +0000 (15:06 -0400)
commit554fb93748d8abfba90af58b597b1f1f3b1d56a3
treeeb6bb131022cac1457e760b1b94bc7ae25e38408
parent3059eb74160fc35cd742135165f7556736c62a22
mac80211: call drv_get_tsf() in sleepable context

The call to drv_get/set_tsf() was put on the workqueue to perform tsf
adjustments since that function might sleep. However it ended up inside
a spinlock, whose critical section must be atomic. Do tsf adjustment
outside the spinlock instead, and get rid of a warning.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_sync.c