• Russ Anderson's avatar
    [IA64] Fix large MCA bootmem allocation · 785285fc
    Russ Anderson authored
    The MCA code allocates bootmem memory for NR_CPUS, regardless
    of how many cpus the system actually has.  This change allocates
    memory only for cpus that actually exist.
    
    On my test system with NR_CPUS = 1024, reserved memory was reduced by 130944k.
    
    Before: Memory: 27886976k/28111168k available (8282k code, 242304k reserved, 5928k data, 1792k init)
    After:  Memory: 28017920k/28111168k available (8282k code, 111360k reserved, 5928k data, 1792k init)
    Signed-off-by: default avatarRuss Anderson <rja@sgi.com>
    Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
    785285fc
mca.c 59.9 KB