]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-powerpc/page_32.h
[POWERPC] pasemi: iommu support
[karo-tx-linux.git] / include / asm-powerpc / page_32.h
index 2677bad70f401c92236170f1fe27a1c3f4ceee51..07f6d3cf5e5aac4338dc44ce3be37c1660ba2680 100644 (file)
@@ -26,15 +26,7 @@ extern void clear_pages(void *page, int order);
 static inline void clear_page(void *page) { clear_pages(page, 0); }
 extern void copy_page(void *to, void *from);
 
-/* Pure 2^n version of get_order */
-extern __inline__ int get_order(unsigned long size)
-{
-       int lz;
-
-       size = (size-1) >> PAGE_SHIFT;
-       asm ("cntlzw %0,%1" : "=r" (lz) : "r" (size));
-       return 32 - lz;
-}
+#include <asm-generic/page.h>
 
 #endif /* __ASSEMBLY__ */