netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] unneeded memory barrier in olympic tokenring driver
@ 2003-09-28 21:57 Felipe W Damasio
  0 siblings, 0 replies; only message in thread
From: Felipe W Damasio @ 2003-09-28 21:57 UTC (permalink / raw)
  To: mikep; +Cc: linux-net, netdev, linux-tr

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

	Hi Daniel,

	Patch against 2.6.0-test6.

	Removes 2 unneeded memory barriers when setting the current task to 
TASK_RUNNING.

	Please consider applying,

Felipe
-- 
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html

[-- Attachment #2: olympic-barrier.patch --]
[-- Type: text/plain, Size: 776 bytes --]

--- linux-2.6.0-test6/drivers/net/tokenring/olympic.c.orig	Sun Sep 28 18:51:13 2003
+++ linux-2.6.0-test6/drivers/net/tokenring/olympic.c	Sun Sep 28 18:51:36 2003
@@ -531,7 +531,7 @@
 			set_current_state(TASK_INTERRUPTIBLE) ; 
     		}
 		remove_wait_queue(&olympic_priv->srb_wait,&wait) ; 
-		set_current_state(TASK_RUNNING) ; 
+		__set_current_state(TASK_RUNNING) ; 
 		olympic_priv->srb_queued = 0 ; 
 #if OLYMPIC_DEBUG
 		printk("init_srb(%p): ",init_srb);
@@ -1122,7 +1122,7 @@
 		set_current_state(TASK_INTERRUPTIBLE) ; 
     	}
 	remove_wait_queue(&olympic_priv->srb_wait,&wait) ; 
-	set_current_state(TASK_RUNNING) ; 
+	__set_current_state(TASK_RUNNING) ; 
 
 	olympic_priv->rx_status_last_received++;
 	olympic_priv->rx_status_last_received&=OLYMPIC_RX_RING_SIZE-1;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-28 21:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-28 21:57 [PATCH] unneeded memory barrier in olympic tokenring driver Felipe W Damasio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).