]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/tile: clarify flush_buffer()/finv_buffer() function names
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 2 May 2011 20:36:48 +0000 (16:36 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 4 May 2011 18:41:20 +0000 (14:41 -0400)
commitd07bd86d82622247dba8cc29974d3860f857ea33
treed6f1c7059c125e61ac7956e4c4bc4d58416a5096
parent5386e735897afd8bcd332caf21a5f68d9e0e81c6
arch/tile: clarify flush_buffer()/finv_buffer() function names

They are only applicable for locally-homecached memory ranges, so
change their names to {flush,finv}_buffer_local().  Change inv_buffer()
to just do an mf instead of any kind of fancier barrier, since you're
obviously not going to be waiting for anything once the local homecache
is invalidated.

Fix tilepro.c network driver not to bother calling finv_buffer when
stopping the EPP, but just mf after memset to ensure that it will not
see any packet data after we finish stopping; use finv_buffer_remote()
when doing exit-time cleanup.

This also fixes a (not very interesting) generic Linux build failure
where drivers/scsi/st.c declares its own flush_buffer().

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/cacheflush.h
drivers/net/tile/tilepro.c