projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
asm-generic: pgalloc: provide generic pgd_free()
[linux-2.6-microblaze.git]
/
include
/
asm-generic
/
pgalloc.h
diff --git
a/include/asm-generic/pgalloc.h
b/include/asm-generic/pgalloc.h
index
d361574
..
6f44810
100644
(file)
--- a/
include/asm-generic/pgalloc.h
+++ b/
include/asm-generic/pgalloc.h
@@
-175,6
+175,13
@@
static inline void pud_free(struct mm_struct *mm, pud_t *pud)
#endif /* CONFIG_PGTABLE_LEVELS > 3 */
+#ifndef __HAVE_ARCH_PGD_FREE
+static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd)
+{
+ free_page((unsigned long)pgd);
+}
+#endif
+
#endif /* CONFIG_MMU */
#endif /* __ASM_GENERIC_PGALLOC_H */