ath6kl: Use a mutex_lock to avoid race in diabling and handling irq
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Wed, 4 Jan 2012 10:27:19 +0000 (15:57 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 9 Jan 2012 14:20:11 +0000 (16:20 +0200)
Currently this race is handled but in a messy way an atomic
variable is being checked in a loop which sleeps upto ms
in every iteration. Remove this logic and use a mutex
to make sure irq is not disabled when irq handling is in
progress.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

No differences found