]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: refactor threaded IRQ routine
authorArik Nemtsov <arik@wizery.com>
Thu, 21 Jun 2012 15:10:51 +0000 (18:10 +0300)
committerLuciano Coelho <coelho@ti.com>
Sat, 23 Jun 2012 06:32:32 +0000 (09:32 +0300)
commit221eac5e419b092c7c2dd56cc3e4409b87338adb
tree5ba9aefbd6450d2de9019724a4dbc92abc10bb32
parent84afbdd05762f14435d181c9e16edcf9183fb856
wlcore: refactor threaded IRQ routine

Separate the threaded IRQ handling routine into two functions.
The outer function takes the mutex and calls recovery on errors. It also
performs a Tx-path optimization to avoid redundant works.

The inner function is simplified - all calls to recovery are removed and
it assumes the lock is taken. The locked variant will be reused elsewhere.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/main.c