]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: avoid flushing the global workqueue for core reg hints
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 30 Jan 2010 00:58:56 +0000 (19:58 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 1 Feb 2010 20:40:05 +0000 (15:40 -0500)
commit7f1f2a80ffe1e07243e5124da6f21639b85c0731
treefb6b47583e6ef4f301097f5b4501e3b1eb511e06
parent6aef46a36c0cb83f30f9b7b67eb196bab875a06c
cfg80211: avoid flushing the global workqueue for core reg hints

When cfg80211 starts it will send a core regulatory hint. This is
sent to the global workqueue but we force processing of it by
flushing the global workqueue. The flushing was done since
cfg80211 needs last_request to always be populated.

Avoid flushing the global workqueue by processing the work
required immediately instead of putting it into a linked
list and processing it after the flush.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c