ARM: nommu: define dummy TLB operations for nommu configurations
authorWill Deacon <will.deacon@arm.com>
Tue, 28 Feb 2012 12:56:06 +0000 (12:56 +0000)
committerJonathan Austin <jonathan.austin@arm.com>
Fri, 7 Jun 2013 16:02:42 +0000 (17:02 +0100)
commit5c709e699881afd1cf9244c719eb063c3476a405
treeb712f8861f09d557c471a826a75d34ad4551ddf6
parent01fafcab20fbbd2930691c7fdcf177eaa190d499
ARM: nommu: define dummy TLB operations for nommu configurations

nommu platforms do not perform address translation and therefore clearly
don't have TLBs. However, some SMP code assumes the presence of the TLB
flushing routines and will therefore fail to compile for a nommu system.

This patch defines dummy local_* TLB operations and #defines
tlb_ops_need_broadcast() as 0, therefore causing the usual ARM SMP TLB
operations to call the local variants instead.

Signed-off-by: Will Deacon <will.deacon@arm.com>
CC: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
CC: Nicolas Pitre <nico@linaro.org>
arch/arm/include/asm/smp_plat.h
arch/arm/include/asm/tlbflush.h