]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390/claw: remove "eieio" calls
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 May 2012 10:58:26 +0000 (12:58 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 May 2012 12:42:45 +0000 (14:42 +0200)
If the code really depends on ordering it's already racy. The additional
memory barriers (eieio) don't help with that.
If the code is not racy the memory barriers also aren't needed.

In any case, just remove them.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/net/claw.c

index b41fae37d3afde703e225ec6f42ea59c94edf848..4c3d4f67514983267b1641003fd66a2f7d47548d 100644 (file)
@@ -136,7 +136,6 @@ static inline void
 claw_set_busy(struct net_device *dev)
 {
  ((struct claw_privbk *)dev->ml_priv)->tbusy = 1;
- eieio();
 }
 
 static inline void
@@ -144,13 +143,11 @@ claw_clear_busy(struct net_device *dev)
 {
        clear_bit(0, &(((struct claw_privbk *) dev->ml_priv)->tbusy));
        netif_wake_queue(dev);
-       eieio();
 }
 
 static inline int
 claw_check_busy(struct net_device *dev)
 {
-       eieio();
        return ((struct claw_privbk *) dev->ml_priv)->tbusy;
 }