patch-2.3.46 linux/arch/arm/mm/consistent.c
Next file: linux/arch/i386/config.in
Previous file: linux/arch/alpha/kernel/pci_iommu.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Feb 14 15:34:21 2000
- Orig file:
v2.3.45/linux/arch/arm/mm/consistent.c
- Orig date:
Sun Feb 13 19:29:03 2000
diff -u --recursive --new-file v2.3.45/linux/arch/arm/mm/consistent.c linux/arch/arm/mm/consistent.c
@@ -12,20 +12,6 @@
#include <asm/io.h>
#include <asm/pgalloc.h>
-/* 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;
-}
-
/*
* This allocates one page of cache-coherent memory space and returns
* both the virtual and a "dma" address to that space. It is not clear
@@ -43,7 +29,7 @@
if (in_interrupt())
BUG();
- order = __get_order(size);
+ order = get_order(size);
page = __get_free_pages(gfp, order);
if (!page)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)