Skip to content

Commit

Permalink
mm: Remove duplicate definitions in MIPS and SH
Browse files Browse the repository at this point in the history
Those definitions are already provided by asm-generic

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Jul 28, 2009
1 parent c56d300 commit 4733fd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
11 changes: 0 additions & 11 deletions arch/mips/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,6 @@ do { \
tlb_remove_page((tlb), pte); \
} while (0)

#ifdef CONFIG_32BIT

/*
* allocating and freeing a pmd is trivial: the 1-entry pmd is
* inside the pgd, so has no extra memory associated with it.
*/
#define pmd_free(mm, x) do { } while (0)
#define __pmd_free_tlb(tlb, x, addr) do { } while (0)

#endif

#ifdef CONFIG_64BIT

static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
Expand Down
8 changes: 0 additions & 8 deletions arch/sh/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ do { \
tlb_remove_page((tlb), (pte)); \
} while (0)

/*
* allocating and freeing a pmd is trivial: the 1-entry pmd is
* inside the pgd, so has no extra memory associated with it.
*/

#define pmd_free(mm, x) do { } while (0)
#define __pmd_free_tlb(tlb,x,addr) do { } while (0)

static inline void check_pgt_cache(void)
{
quicklist_trim(QUICK_PGD, NULL, 25, 16);
Expand Down

0 comments on commit 4733fd3

Please sign in to comment.