public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ravikiran G Thirumalai <kiran@in.ibm.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] per-cpu areas
Date: Tue, 12 Feb 2002 10:28:52 +0530	[thread overview]
Message-ID: <20020212102852.I32236@in.ibm.com> (raw)
In-Reply-To: <E17wsrr-0007bD-00@wagner.rustcorp.com.au>
In-Reply-To: <E17wsrr-0007bD-00@wagner.rustcorp.com.au>; from rusty@rustcorp.com.au on Thu, Oct 03, 2002 at 09:25:23AM +1000

> +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.

       reply	other threads:[~2002-02-12  5:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E17wsrr-0007bD-00@wagner.rustcorp.com.au>
2002-02-12  4:58 ` Ravikiran G Thirumalai [this message]
2002-02-13  9:48   ` [PATCH] per-cpu areas Rusty Russell
2002-02-19  2:05 ` Something Wrong with LKML ???? Zoran Davidovac
2002-02-19  8:19   ` Matti Aarnio
2002-03-05  7:54 [PATCH] per-cpu areas Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020212102852.I32236@in.ibm.com \
    --to=kiran@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox