net: pxa168_eth: use {readl|writel}_relaxed instead of readl/writel
authorJisheng Zhang <jszhang@marvell.com>
Fri, 13 May 2016 11:57:29 +0000 (19:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:39:49 +0000 (13:39 -0400)
Since appropriate memory barriers are already there, use the relaxed
version to improve performance a bit.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c

index 89d0d835352ecf82a91b342a64d701c60da79d20..ab9d0e838a4080358a6fee542838de85fe5dbe42 100644 (file)
@@ -286,12 +286,12 @@ static int pxa168_eth_stop(struct net_device *dev);
 
 static inline u32 rdl(struct pxa168_eth_private *pep, int offset)
 {
-       return readl(pep->base + offset);
+       return readl_relaxed(pep->base + offset);
 }
 
 static inline void wrl(struct pxa168_eth_private *pep, int offset, u32 data)
 {
-       writel(data, pep->base + offset);
+       writel_relaxed(data, pep->base + offset);
 }
 
 static void abort_dma(struct pxa168_eth_private *pep)