public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nathan Lynch <nathanl@austin.ibm.com>
To: Ashok Raj <ashok.raj@intel.com>
Cc: linux-kernel@vger.kernel.org, greg@kroah.com,
	rusty@rustcorp.com.au, mochel@digitalimplant.org,
	anton@samba.org
Subject: Re: [RFC/PATCH 0/4] cpus, nodes, and the device model: dynamic cpu registration
Date: Mon, 08 Nov 2004 21:45:48 -0600	[thread overview]
Message-ID: <1099971948.8723.51.camel@localhost.localdomain> (raw)
In-Reply-To: <20041104170902.A8747@unix-os.sc.intel.com>

On Thu, 2004-11-04 at 17:09 -0800, Ashok Raj wrote:
> On Sun, Oct 24, 2004 at 03:42:10AM -0600, Nathan Lynch wrote:
> > 
> > Finally, I've added two new interfaces which wrap all this up --
> > cpu_add() and cpu_remove().  These carry out the necessary update to
> > cpu_present_map and take care of the cpu device registration.  These
> > are meant to be invoked from the platform-specific code which
> > discovers and removes processors.
> 
> I think you want the device registration that create the sysfs file to the 
> arch code.

No, I don't think the arch code should be registering the cpu devices
(or the node devices).  There is very little that is arch-specific about
these, and the same code is more or less duplicated between the
architectures.

>  If you look at the ACPI extensions to support physical cpu hotplug
> we need to keep track of the acpi->logical association. so all we really need
> is a bit off the bitmap, but the cpu is not yet ready for operation yet.

I see your point here, though, and I'm slightly embarrassed I forgot
that ppc64 has similar needs.  What is needed is an arch-specific
__cpu_add which is called from cpu_add after the new cpu's bit has been
reserved, and which sets up the architecture's physical<->logical
associations or whatever.  This follows the convention established in
the existing cpu code and keeps the manipulation of cpu_present_map in
one place.

I'll incorporate this in my next attempt.


Nathan


  reply	other threads:[~2004-11-09  3:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-24  9:42 [RFC/PATCH 0/4] cpus, nodes, and the device model: dynamic cpu registration Nathan Lynch
2004-10-24  9:42 ` [RFC/PATCH 1/4] dynamic cpu registration - core changes Nathan Lynch
2004-11-05  1:51   ` Ashok Raj
2004-11-09  3:45     ` Nathan Lynch
2004-10-24  9:42 ` [RFC/PATCH 2/4] drivers/base/node.c changes for dynamic cpu registration Nathan Lynch
2004-10-24  9:42 ` [RFC/PATCH 3/4] introduce cpu_add and cpu_remove Nathan Lynch
2004-11-05  1:57   ` Ashok Raj
2004-11-05 23:14     ` Matthew Dobson
2004-10-24  9:42 ` [RFC/PATCH 4/4] ppc64: convert to sysdev_driver Nathan Lynch
2004-10-25  6:12 ` [RFC/PATCH 0/4] cpus, nodes, and the device model: dynamic cpu registration Rusty Russell
2004-10-25 11:20   ` Nathan Lynch
2004-11-05  1:09 ` Ashok Raj
2004-11-09  3:45   ` Nathan Lynch [this message]
2004-11-05  1:54 ` Keshavamurthy Anil S

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=1099971948.8723.51.camel@localhost.localdomain \
    --to=nathanl@austin.ibm.com \
    --cc=anton@samba.org \
    --cc=ashok.raj@intel.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@digitalimplant.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