X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-m68knommu%2Fpage.h;h=2a1b8bdcb29c497020c72d7a68e02bf9f993041d;hb=711fa8096863e4b50bb97f9ebc44606dc2182ac3;hp=ff6a9265ed1cbf9fb1fe913e4203f07d090a2948;hpb=15c42e5a1f0bccb69508059b8ae0720840068b8e;p=powerpc.git diff --git a/include/asm-m68knommu/page.h b/include/asm-m68knommu/page.h index ff6a9265ed..2a1b8bdcb2 100644 --- a/include/asm-m68knommu/page.h +++ b/include/asm-m68knommu/page.h @@ -1,7 +1,7 @@ #ifndef _M68KNOMMU_PAGE_H #define _M68KNOMMU_PAGE_H -#include +#ifdef __KERNEL__ /* PAGE_SHIFT determines the page size */ @@ -9,8 +9,6 @@ #define PAGE_SIZE (1UL << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) -#ifdef __KERNEL__ - #include #ifndef __ASSEMBLY__ @@ -48,20 +46,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) -/* 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; @@ -91,6 +75,8 @@ extern unsigned long memory_end; #endif /* __ASSEMBLY__ */ +#include + #endif /* __KERNEL__ */ #endif /* _M68KNOMMU_PAGE_H */