diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-06-20 21:57:53 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-06-20 21:57:53 +0000 |
commit | a3c7dde95372a1b133a66afe0289915d8f1fe2c5 (patch) | |
tree | 58ca23a8ae7b8f4213e001b2bb5f3b95a83b085b /target/linux/mcs814x/files-3.3/drivers/net | |
parent | 2c4cbaba5db08916cb13d64d85155628fd12dc8e (diff) | |
download | upstream-a3c7dde95372a1b133a66afe0289915d8f1fe2c5.tar.gz upstream-a3c7dde95372a1b133a66afe0289915d8f1fe2c5.tar.bz2 upstream-a3c7dde95372a1b133a66afe0289915d8f1fe2c5.zip |
[mcs814x] remove uselss cache invalidations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32472 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.3/drivers/net')
-rw-r--r-- | target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c index 6979d41bc0..cef67b8dec 100644 --- a/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c +++ b/target/linux/mcs814x/files-3.3/drivers/net/ethernet/mcs8140/nuport_mac.c @@ -142,26 +142,6 @@ struct nuport_mac_priv { u32 msg_level; }; -void dcache_invalidate_only(unsigned long start, unsigned long end) -{ - asm("\n" - " bic r0, r0, #31\n" - "1: mcr p15, 0, r0, c7, c6, 1\n" - " add r0, r0, #32\n" - " cmp r0, r1\n" " blo 1b\n"); -} - -void dcache_clean_range(unsigned long start, unsigned long end) -{ - asm("\n" - " bic r0, r0, #31\n" - "1: mcr p15, 0, r0, c7, c10, 1 @ clean D entry\n" - " add r0, r0, #32\n" - " cmp r0, r1\n" - " blo 1b\n" \ - " mcr p15, 0, r0, c7, c10, 4 @ drain WB\n"); -} - static inline int nuport_mac_mii_busy_wait(struct nuport_mac_priv *priv) { unsigned long curr; @@ -533,8 +513,6 @@ static int nuport_mac_rx(struct net_device *dev, int limit) while (count < limit && !priv->irq_rxskb[priv->cur_rx]) { skb = priv->rx_skb[priv->cur_rx]; len = priv->pkt_len[priv->cur_rx]; - dcache_invalidate_only(((u32) skb->data), - ((u32) (skb->data + len + 4))); /* Remove 2 bytes added by RX buffer shifting */ len = len - 2; |