public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [lhcs-devel] Re: [RFC] don't create cpu/online sysfs file
@ 2004-06-04 23:04 Dave Hansen
  2004-06-04 23:17 ` Ashok Raj
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Dave Hansen @ 2004-06-04 23:04 UTC (permalink / raw)
  To: linux-ia64

On Fri, 2004-06-04 at 15:49, Ashok Raj wrote:
> place a file in /sys/devices/system/cpuinfo, which when one does a cat on
> can display
> 
> cpu0:	online, not offlinable
> cpu1:	online
> cpu2:	offline (meaning present)

This might be a little bit more than is intended for a sysfs file,
especially if the information can be obtained some other way.  Here's
what I was thinking of:

cat /sys/devices/system/cpu/cpuX/online
doesn't exist: online, not offlinable
	    1: online
	    0: offline (meaning present)

If you want to get information like you have above, it's pretty trivial
to write a little script to do it.  

> the reason this cannot be determined at early time, is say if a set of cpu's are
> in a special mode, i.e only those 4 cpu's can retrieve a set of platform registers.
> for error processing. And i can offline each of those, until i run into the last 
> of those 4 cpus. 

Are you saying that you don't know if a CPU can be offlined at the time
that the sysfs files are created?  If so, I bet we could delay the
creation of the kobjects until a more appropriate time.  I don't think
anything in early boot actually needs them.

> I would prefer to not have a macro to preventy its creation, but have a 
> facility to know the offlineable status via a single information file, and 
> let __cpu_disable() determine if offline should fail based on current ability 
> to offline a cpu.
> 
> what do you think?

I just worry that any single information file doesn't fit in well with
the sysfs model.  

-- Dave


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-06-09 14:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-04 23:04 [lhcs-devel] Re: [RFC] don't create cpu/online sysfs file Dave Hansen
2004-06-04 23:17 ` Ashok Raj
2004-06-04 23:41 ` Dave Hansen
2004-06-05 14:38 ` Ashok Raj
2004-06-05 19:22 ` Dave Hansen
2004-06-06 20:27 ` Ashok Raj
2004-06-07  5:05 ` Dave Hansen
2004-06-07 14:07 ` Nathan Lynch
2004-06-07 14:08 ` Ashok Raj
2004-06-07 14:14 ` Ashok Raj
2004-06-07 16:41 ` Dave Hansen
2004-06-07 17:22 ` Ashok Raj
2004-06-07 19:25 ` Dave Hansen
2004-06-07 20:48 ` Ashok Raj
2004-06-09  7:10 ` Andrew Morton
2004-06-09 14:27 ` Ashok Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox