Files
linux/arch/microblaze/include/asm
Will Deacon fb7332a9fe mmu_gather: move minimal range calculations into generic code
On architectures with hardware broadcasting of TLB invalidation messages
, it makes sense to reduce the range of the mmu_gather structure when
unmapping page ranges based on the dirty address information passed to
tlb_remove_tlb_entry.

arm64 already does this by directly manipulating the start/end fields
of the gather structure, but this confuses the generic code which
does not expect these fields to change and can end up calculating
invalid, negative ranges when forcing a flush in zap_pte_range.

This patch moves the minimal range calculation out of the arm64 code
and into the generic implementation, simplifying zap_pte_range in the
process (which no longer needs to care about start/end, since they will
point to the appropriate ranges already). With the range being tracked
by core code, the need_flush flag is dropped in favour of checking that
the end of the range has actually been set.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Michal Simek <monstr@monstr.eu>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2014-11-17 10:12:42 +00:00
..
2014-01-27 11:24:55 +01:00
2014-01-23 16:36:54 -08:00
2013-01-03 12:47:20 +01:00
2009-03-27 14:25:35 +01:00
2010-08-04 10:45:17 +02:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2013-10-09 20:04:08 -05:00
2010-10-21 15:51:25 +10:00
2010-04-01 08:38:24 +02:00
2014-09-09 13:14:47 +02:00
2010-08-04 10:22:35 +02:00