Re: [PATCH] per-cpu areas

Ravikiran G Thirumalai (kiran@in.ibm.com)
Tue, 12 Feb 2002 10:28:52 +0530


> +static void __init setup_per_cpu_areas(void)
> +{
> + unsigned long size, i;
> + char *ptr;
> + /* Created by linker magic */
> + extern char __per_cpu_start[], __per_cpu_end[];
> +
> + /* Copy section for each CPU (we discard the original) */
> + size = ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES);
> + ptr = alloc_bootmem(size * NR_CPUS);

Would it be possible to free up NR_CPUS - smp_num_cpus worth of memory
after smp_init? ....

Regards,
Kiran

-- 
Ravikiran G Thirumalai <kiran@in.ibm.com>
Linux Technology Center, IBM Software Labs,
Bangalore.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/