mm: Remove duplicate definitions in MIPS and SH
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 28 Jul 2009 00:16:48 +0000 (10:16 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Jul 2009 00:26:44 +0000 (17:26 -0700)
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>
arch/mips/include/asm/pgalloc.h
arch/sh/include/asm/pgalloc.h

index f705735feefcb063eb31d7d35e89e430da081fda..3738f4b48cbd63b75b9b91095c6ef9807f26866d 100644 (file)
@@ -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)
index 89a482750a5b0f267f6360cfb1cf259db6bde269..63ca37bd9a9557a27735fa1dc4c53cdb066d066a 100644 (file)
@@ -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);