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 1/4] dynamic cpu registration - core changes
Date: Mon, 08 Nov 2004 21:45:47 -0600	[thread overview]
Message-ID: <1099971947.8723.50.camel@localhost.localdomain> (raw)
In-Reply-To: <20041104175125.A9271@unix-os.sc.intel.com>

On Thu, 2004-11-04 at 17:51 -0800, Ashok Raj wrote:
> On Sun, Oct 24, 2004 at 05:42:17AM -0400, Nathan Lynch wrote:
> > 
> > +	/* XXX FIXME: cpu->no_control is always zero...
> > +	 * Maybe should introduce an arch-overridable "hotpluggable" map.
> > +	 */

> Iam getting obsessed with these __attribute__((weak)) these days...:-)
> 
> simple solution seems like you can have a platform_prefilter() and post_filter() declared
> in the core with weak atteibute, and let the platform that cares about this provide an override
> function. So if you need to hang off additional files for platform this can be handy. so for
> ppc64, based on LPAR or not, you can add these no_control flag before the file is created?

I'm not sure using weak symbols is the way to take care of the
'no_control' field.  I think having the arch implement a
__register_cpu(struct cpu*) helper which sets the the 'no_control'
attribute should be sufficient.  E.g. IA64 and i386 implementations of
__register_cpu would set no_control=1 if the cpu is the boot processor.

With respect to the general issue of adding sysfs attributes to the cpu
devices, that's simply a matter of coding up a sysdev_driver as I did in
the node and ppc64 code in the other patches.


Nathan


  reply	other threads:[~2004-11-09  3:45 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 [this message]
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
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=1099971947.8723.50.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