ARM: 8203/1: mm: try to re-use old ASID assignments following a rollover
authorWill Deacon <will.deacon@arm.com>
Fri, 14 Nov 2014 10:37:34 +0000 (11:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 21 Nov 2014 15:24:46 +0000 (15:24 +0000)
commita391263cd84e6ae2da26a54383f3abf80c18d9df
treed2bff30f0aa5a36787b9a735b081637b392003fa
parent2b94fe2ac97fdd2ae7521004e857e33016720eb7
ARM: 8203/1: mm: try to re-use old ASID assignments following a rollover

Rather than unconditionally allocating a fresh ASID to an mm from an
older generation, attempt to re-use the old assignment where possible.

This can bring performance benefits on systems where the ASID is used to
tag things other than the TLB (e.g. branch prediction resources).

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/context.c