Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] noMMU: removes TLB codes in nommu mode

This patch removes TLB related codes in nommu mode.

Signed-off-by: Hyok S. Choi <hyok.choi@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Hyok S. Choi and committed by
Russell King
0157903e f24284ad

+18
+9
include/asm-arm/tlb.h
··· 19 19 20 20 #include <asm/cacheflush.h> 21 21 #include <asm/tlbflush.h> 22 + 23 + #ifndef CONFIG_MMU 24 + 25 + #include <linux/pagemap.h> 26 + #include <asm-generic/tlb.h> 27 + 28 + #else /* !CONFIG_MMU */ 29 + 22 30 #include <asm/pgalloc.h> 23 31 24 32 /* ··· 90 82 91 83 #define tlb_migrate_finish(mm) do { } while (0) 92 84 85 + #endif /* CONFIG_MMU */ 93 86 #endif
+9
include/asm-arm/tlbflush.h
··· 11 11 #define _ASMARM_TLBFLUSH_H 12 12 13 13 #include <linux/config.h> 14 + 15 + #ifndef CONFIG_MMU 16 + 17 + #define tlb_flush(tlb) ((void) tlb) 18 + 19 + #else /* CONFIG_MMY */ 20 + 14 21 #include <asm/glue.h> 15 22 16 23 #define TLB_V3_PAGE (1 << 0) ··· 429 422 #define flush_tlb_pgtables(mm,start,end) do { } while (0) 430 423 431 424 #endif 425 + 426 + #endif /* CONFIG_MMU */ 432 427 433 428 #endif