From: Will Deacon Date: Tue, 17 Dec 2013 18:17:31 +0000 (+0100) Subject: ARM: 7925/1: mm: keep track of last ASID allocation to improve bitmap searching X-Git-Tag: v3.14-rc1~116^2~1^5~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7a04105068e9bb4cba43d97613c4f19b9e90b0c;p=pandora-kernel.git 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 Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed