arm64: context: Fix comments and remove pointless smp_wmb()
authorWill Deacon <will.deacon@arm.com>
Thu, 30 Nov 2017 18:25:17 +0000 (18:25 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 1 Dec 2017 13:05:08 +0000 (13:05 +0000)
commit3a33c7605750fb6a87613044d16b1455e482414d
treedb8a977414805adbc8805e15612a1832bfab008f
parent770ba06084f7aeadea120922c775d574f3128ba3
arm64: context: Fix comments and remove pointless smp_wmb()

The comments in the ASID allocator incorrectly hint at an MP-style idiom
using the asid_generation and the active_asids array. In fact, the
synchronisation is achieved using a combination of an xchg operation
and a spinlock, so update the comments and remove the pointless smp_wmb().

Cc: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/context.c