Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377395
b: refs/heads/master
c: ea05fea
h: refs/heads/master
i:
  377393: fbeff95
  377391: 074095e
v: v3
  • Loading branch information
Daniel Drake authored and John W. Linville committed Jun 13, 2013
1 parent 2a93eca commit a5c68f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59f45d576a0715026d1919ab8a12047616204656
refs/heads/master: ea05fea9042620ac3b8ab9a3e5e4d2ed80c89244
9 changes: 4 additions & 5 deletions trunk/drivers/bluetooth/btmrvl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ static int btmrvl_service_main_thread(void *data)
add_wait_queue(&thread->wait_q, &wait);

set_current_state(TASK_INTERRUPTIBLE);
if (kthread_should_stop()) {
BT_DBG("main_thread: break from main thread");
break;
}

if (adapter->wakeup_tries ||
((!adapter->int_count) &&
Expand All @@ -513,11 +517,6 @@ static int btmrvl_service_main_thread(void *data)

BT_DBG("main_thread woke up");

if (kthread_should_stop()) {
BT_DBG("main_thread: break from main thread");
break;
}

spin_lock_irqsave(&priv->driver_lock, flags);
if (adapter->int_count) {
adapter->int_count = 0;
Expand Down

0 comments on commit a5c68f9

Please sign in to comment.