]> git.baikalelectronics.ru Git - kernel.git/commit
net: calxedaxgmac: use raw i/o accessors in rx and tx paths
authorRob Herring <rob.herring@calxeda.com>
Mon, 5 Nov 2012 06:22:21 +0000 (06:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 08:51:13 +0000 (03:51 -0500)
commit60b9dc107df41285a39c46db99fd5b02e4f22120
tree7ac7a7216579c1e480de333f223811e92ffa3033
parent4e3a4764e1d0ea9adcd62e21046677101a872a5f
net: calxedaxgmac: use raw i/o accessors in rx and tx paths

The standard readl/writel accessors involve a spinlock and cache sync
operation on ARM platforms with an outer cache. Only DMA triggering
accesses need this, so use the raw variants instead in the critical paths.

The relaxed variants would be more appropriate, but don't exist on all
arches.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/calxeda/xgmac.c