numa.c (1b98a8221e3c9c86ae7e292ba7542d2dd6f10eb9) numa.c (fb6d73d3014babb69f5cc2d1d78b31e9d09fc5df)
1/*
2 * pSeries NUMA support
3 *
4 * Copyright (C) 2002 Anton Blanchard <anton@au.ibm.com>, IBM
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 469 unchanged lines hidden (view full) ---

478
479 return 0;
480}
481
482static void __init setup_nonnuma(void)
483{
484 unsigned long top_of_ram = lmb_end_of_DRAM();
485 unsigned long total_ram = lmb_phys_mem_size();
1/*
2 * pSeries NUMA support
3 *
4 * Copyright (C) 2002 Anton Blanchard <anton@au.ibm.com>, IBM
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 469 unchanged lines hidden (view full) ---

478
479 return 0;
480}
481
482static void __init setup_nonnuma(void)
483{
484 unsigned long top_of_ram = lmb_end_of_DRAM();
485 unsigned long total_ram = lmb_phys_mem_size();
486 unsigned int i;
486
487 printk(KERN_INFO "Top of RAM: 0x%lx, Total RAM: 0x%lx\n",
488 top_of_ram, total_ram);
489 printk(KERN_INFO "Memory hole size: %ldMB\n",
490 (top_of_ram - total_ram) >> 20);
491
492 map_cpu_to_node(boot_cpuid, 0);
487
488 printk(KERN_INFO "Top of RAM: 0x%lx, Total RAM: 0x%lx\n",
489 top_of_ram, total_ram);
490 printk(KERN_INFO "Memory hole size: %ldMB\n",
491 (top_of_ram - total_ram) >> 20);
492
493 map_cpu_to_node(boot_cpuid, 0);
493 add_region(0, 0, lmb_end_of_DRAM() >> PAGE_SHIFT);
494 for (i = 0; i < lmb.memory.cnt; ++i)
495 add_region(0, lmb.memory.region[i].base >> PAGE_SHIFT,
496 lmb_size_pages(&lmb.memory, i));
494 node_set_online(0);
495}
496
497static void __init dump_numa_topology(void)
498{
499 unsigned int node;
500 unsigned int count;
501

--- 228 unchanged lines hidden ---
497 node_set_online(0);
498}
499
500static void __init dump_numa_topology(void)
501{
502 unsigned int node;
503 unsigned int count;
504

--- 228 unchanged lines hidden ---