Răsfoiți Sursa

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: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
David Howells 16 ani în urmă
părinte
comite
6fde836b54
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      include/asm-frv/pgtable.h

+ 2 - 4
include/asm-frv/pgtable.h

@@ -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)
-#define arch_enter_lazy_cpu_mode()	do {} while (0)
-#define arch_leave_lazy_cpu_mode()	do {} while (0)
+
+#include <asm-generic/pgtable.h>
 
 
 #else /* !CONFIG_MMU */
 #else /* !CONFIG_MMU */
 /*****************************************************************************/
 /*****************************************************************************/