]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Unneeded memory barrier in net/irda code
authorFelipe Damasio <felipewd@terra.com.br>
Sat, 20 Sep 2003 09:55:14 +0000 (05:55 -0400)
committerStephen Hemminger <shemminger@osdl.org>
Sat, 20 Sep 2003 09:55:14 +0000 (05:55 -0400)
drivers/net/irda/sir_kthread.c

index 5e7f455432c2e8bdab7a1b8a0026f814e2cf246e..620b524bd80ea8d383e69c86cbc6ed55db589079 100644 (file)
@@ -132,7 +132,7 @@ static int irda_thread(void *startup)
                if (list_empty(&irda_rq_queue.request_list))
                        schedule();
                else
-                       set_task_state(current, TASK_RUNNING);
+                       __set_task_state(current, TASK_RUNNING);
                remove_wait_queue(&irda_rq_queue.kick, &wait);
 
                /* make swsusp happy with our thread */
@@ -165,7 +165,7 @@ static void flush_irda_queue(void)
                if (atomic_read(&irda_rq_queue.num_pending))
                        schedule();
                else
-                       set_task_state(current, TASK_RUNNING);
+                       __set_task_state(current, TASK_RUNNING);
                remove_wait_queue(&irda_rq_queue.done, &wait);
        }
 }