projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] sched_domain: handle kmalloc failure
[powerpc.git]
/
include
/
asm-m68knommu
/
page.h
diff --git
a/include/asm-m68knommu/page.h
b/include/asm-m68knommu/page.h
index
ff6a926
..
a22bf5a
100644
(file)
--- a/
include/asm-m68knommu/page.h
+++ b/
include/asm-m68knommu/page.h
@@
-1,7
+1,6
@@
#ifndef _M68KNOMMU_PAGE_H
#define _M68KNOMMU_PAGE_H
#ifndef _M68KNOMMU_PAGE_H
#define _M68KNOMMU_PAGE_H
-#include <linux/config.h>
/* PAGE_SHIFT determines the page size */
/* PAGE_SHIFT determines the page size */
@@
-48,20
+47,6
@@
typedef struct { unsigned long pgprot; } pgprot_t;
/* to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)
/* to align the pointer to the (next) page boundary */
#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK)
-/* Pure 2^n version of get_order */
-extern __inline__ int get_order(unsigned long size)
-{
- int order;
-
- size = (size-1) >> (PAGE_SHIFT-1);
- order = -1;
- do {
- size >>= 1;
- order++;
- } while (size);
- return order;
-}
-
extern unsigned long memory_start;
extern unsigned long memory_end;
extern unsigned long memory_start;
extern unsigned long memory_end;
@@
-93,4
+78,6
@@
extern unsigned long memory_end;
#endif /* __KERNEL__ */
#endif /* __KERNEL__ */
+#include <asm-generic/page.h>
+
#endif /* _M68KNOMMU_PAGE_H */
#endif /* _M68KNOMMU_PAGE_H */