Skip to content

Commit

Permalink
microblaze: Remove duplicity from pgalloc.h
Browse files Browse the repository at this point in the history
just file cleanup

Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
michalsimek committed Dec 14, 2009
1 parent fd3db0a commit d4f1827
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions arch/microblaze/include/asm/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ extern inline void free_pgd_slow(pgd_t *pgd)
*/
#define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); })
#define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); })
/* FIXME two definition - look below */
#define pmd_free(mm, x) do { } while (0)
#define pgd_populate(mm, pmd, pte) BUG()

static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
unsigned long address)
Expand Down Expand Up @@ -192,14 +189,14 @@ extern inline void pte_free(struct mm_struct *mm, struct page *ptepage)
* the pgd will always be present..
*/
#define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); })
/*#define pmd_free(mm, x) do { } while (0)*/
#define __pmd_free_tlb(tlb, x, addr) do { } while (0)
#define pmd_free(mm, x) do { } while (0)
#define __pmd_free_tlb(tlb, x, addr) pmd_free((tlb)->mm, x)
#define pgd_populate(mm, pmd, pte) BUG()

extern int do_check_pgt_cache(int, int);

#endif /* CONFIG_MMU */

#define check_pgt_cache() do {} while (0)
#define check_pgt_cache() do { } while (0)

#endif /* _ASM_MICROBLAZE_PGALLOC_H */

0 comments on commit d4f1827

Please sign in to comment.