Skip to contentSkip to conversation

unneeded memory barrier in olympic tokenring driver

PATCH New Felipe W Damasio 1 participant 1 message Sep 28, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unneeded memory barrier in olympic tokenring driver

	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

Signature · 2 lines
It's most certainly GNU/Linux, not Linux. Read more at
http://www.gnu.org/gnu/why-gnu-linux.html
drivers/net/tokenring/olympic.c renamed from drivers/net/tokenring/olympic.c.orig +2 -2
@@ -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;