OSDN Git Service

wcn36xx: Reduce spinlock in indication handler
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 9 Dec 2017 00:35:08 +0000 (16:35 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 14 Dec 2017 15:31:44 +0000 (17:31 +0200)
commit6d1f37323f5b796dbba4e2d9069778fc5b9bb2a2
tree97d7f1477851aa22dfc1c374cf85c0857036d338
parent413fd2f5c0233d3cde391679b967c1f14cd2cb27
wcn36xx: Reduce spinlock in indication handler

The purpose of pushing indication on a list and handle these in a
separate worker is to allow the handlers to sleep. It does therefor not
make much sense to hold the queue spinlock through the entire indication
worker function.

By removing items from the queue early we don't need to hold the lock
throughout the indication worker, allowing the individual handlers to
sleep.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/smd.c