diff options
author | Will Deacon <will.deacon@arm.com> | 2013-12-17 18:17:31 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-12-29 12:46:48 (GMT) |
commit | a7a04105068e9bb4cba43d97613c4f19b9e90b0c (patch) | |
tree | 7b321f537f2a9b532f3ae8b482797c4d7c672d1b /arch/arm/mm/proc-arm946.S | |
parent | e1a5848e3398dca135f3ae77fe2e01145f9d8826 (diff) | |
download | linux-a7a04105068e9bb4cba43d97613c4f19b9e90b0c.tar.xz |
ARM: 7925/1: mm: keep track of last ASID allocation to improve bitmap searching
Since we only clear entries in the ASID bitmap on a rollover event, the
bitmap tends to consist of a block of consecutive set bits followed by
a block of consecutive clear bits. The exception to this rule is for
ASIDs which have been carried over from a previous generation, but
these are bound by the number of CPUs.
This patch optimises our bitmap searching strategy, so that we search
from the last successful allocation, rather than search from index 1
each time we allocate a new ASID.
Reviewed-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>
Diffstat (limited to 'arch/arm/mm/proc-arm946.S')
0 files changed, 0 insertions, 0 deletions