Skip to content

Commit

Permalink
FRV: Use <asm-generic/pgtable.h> in NOMMU mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells authored and Linus Torvalds committed Apr 9, 2009
1 parent 34574dd commit 6fde836
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/asm-frv/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ static inline int pte_file(pte_t pte) { return 0; }
#define swapper_pg_dir ((pgd_t *) NULL)

#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 */
/*****************************************************************************/
Expand Down

0 comments on commit 6fde836

Please sign in to comment.