diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2011-02-28 15:48:39 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2011-03-01 16:21:06 -0500 |
commit | 63b7ca6b04427aea9075d6f5f5f15b82e115bce4 (patch) | |
tree | 97a72ec3d243a46475e880b2c5703a167165f961 /drivers/net/tile | |
parent | 3cebbafd28e6f91677f3becffcdf9150b74a4e0c (diff) |
arch/tile: enhance existing finv_buffer_remote() routine
It now takes an additional argument so it can be used to
flush-and-invalidate pages that are cached using hash-for-home
as well those that are cached with coherence point on a single cpu.
This allows it to be used more widely for changing the coherence
point of arbitrary pages when necessary.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'drivers/net/tile')
-rw-r--r-- | drivers/net/tile/tilepro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tile/tilepro.c b/drivers/net/tile/tilepro.c index 7cb301da7474..f9012992d21e 100644 --- a/drivers/net/tile/tilepro.c +++ b/drivers/net/tile/tilepro.c | |||
@@ -1620,7 +1620,7 @@ static unsigned int tile_net_tx_frags(lepp_frag_t *frags, | |||
1620 | if (b_len != 0) { | 1620 | if (b_len != 0) { |
1621 | 1621 | ||
1622 | if (!hash_default) | 1622 | if (!hash_default) |
1623 | finv_buffer_remote(b_data, b_len); | 1623 | finv_buffer_remote(b_data, b_len, 0); |
1624 | 1624 | ||
1625 | cpa = __pa(b_data); | 1625 | cpa = __pa(b_data); |
1626 | frags[n].cpa_lo = cpa; | 1626 | frags[n].cpa_lo = cpa; |
@@ -1643,7 +1643,7 @@ static unsigned int tile_net_tx_frags(lepp_frag_t *frags, | |||
1643 | if (!hash_default) { | 1643 | if (!hash_default) { |
1644 | void *va = pfn_to_kaddr(pfn) + f->page_offset; | 1644 | void *va = pfn_to_kaddr(pfn) + f->page_offset; |
1645 | BUG_ON(PageHighMem(f->page)); | 1645 | BUG_ON(PageHighMem(f->page)); |
1646 | finv_buffer_remote(va, f->size); | 1646 | finv_buffer_remote(va, f->size, 0); |
1647 | } | 1647 | } |
1648 | 1648 | ||
1649 | cpa = ((phys_addr_t)pfn << PAGE_SHIFT) + f->page_offset; | 1649 | cpa = ((phys_addr_t)pfn << PAGE_SHIFT) + f->page_offset; |