patch-2.4.4 linux/arch/ia64/sn/sn1/discontig.c
Next file: linux/arch/ia64/sn/sn1/error.c
Previous file: linux/arch/ia64/sn/sn1/Makefile
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Apr 5 12:51:47 2001
- Orig file:
v2.4.3/linux/arch/ia64/sn/sn1/discontig.c
- Orig date:
Thu Jan 4 15:25:55 2001
diff -u --recursive --new-file v2.4.3/linux/arch/ia64/sn/sn1/discontig.c linux/arch/ia64/sn/sn1/discontig.c
@@ -139,35 +139,6 @@
dump_bootmem_info() ;
}
-void __init
-discontig_paging_init(void)
-{
- int i;
- unsigned long max_dma, zones_size[MAX_NR_ZONES];
- void dump_node_data(void);
-
- max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT;
- for (i = 0; i < numnodes; i++) {
- extern void free_unused_memmap_node(int);
- unsigned long startpfn = __pa((void *)NODE_START(i)) >> PAGE_SHIFT;
- unsigned long numpfn = NODE_SIZE(i) >> PAGE_SHIFT;
- memset(zones_size, 0, sizeof(zones_size));
-
- if ((startpfn + numpfn) < max_dma) {
- zones_size[ZONE_DMA] = numpfn;
- } else if (startpfn > max_dma) {
- zones_size[ZONE_NORMAL] = numpfn;
- } else {
- zones_size[ZONE_DMA] = (max_dma - startpfn);
- zones_size[ZONE_NORMAL] = numpfn - zones_size[ZONE_DMA];
- }
- free_area_init_node(i, NODE_DATA(i), NULL, zones_size, startpfn<<PAGE_SHIFT, 0);
- free_unused_memmap_node(i);
- }
- dump_node_data();
-}
-
-
void
dump_node_data(void)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)