Commit 6fde836b authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

FRV: Use <asm-generic/pgtable.h> in NOMMU mode



asm-frv/pgtable.h could just #include <asm-generic/pgtable.h> in NOMMU mode
rather than #defining macros for lazy MMU and CPU stuff.
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 34574dd1
...@@ -71,10 +71,8 @@ static inline int pte_file(pte_t pte) { return 0; } ...@@ -71,10 +71,8 @@ static inline int pte_file(pte_t pte) { return 0; }
#define swapper_pg_dir ((pgd_t *) NULL) #define swapper_pg_dir ((pgd_t *) NULL)
#define pgtable_cache_init() do {} while (0) #define pgtable_cache_init() do {} while (0)
#define arch_enter_lazy_mmu_mode() do {} while (0)
#define arch_leave_lazy_mmu_mode() do {} while (0) #include <asm-generic/pgtable.h>
#define arch_enter_lazy_cpu_mode() do {} while (0)
#define arch_leave_lazy_cpu_mode() do {} while (0)
#else /* !CONFIG_MMU */ #else /* !CONFIG_MMU */
/*****************************************************************************/ /*****************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment