[PATCH v4 11/16] powerpc/powernv: Release replaced TCE

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Aug 6 16:27:37 EST 2014


On Wed, 2014-07-30 at 19:31 +1000, Alexey Kardashevskiy wrote:
> 
> This adds a set_and_get() callback to iommu_table_ops which does the
> same
> thing as set() plus it returns replaced TCE(s) so the caller can
> release
> the pages afterwards.

Call it xchg() instead of set_and_get(), it better reflects the
atomicity requirement.

Cheers,
Ben.




More information about the Linuxppc-dev mailing list