lkml.org 
[lkml]   [2007]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: getting processor numbers
Ulrich Drepper wrote:
> Siddha, Suresh B wrote:a
> > Not all of the cpu* directories in /sys/devices/system/cpu may be
> > online.
>
> Apparently this information isn't needed. It's very easy to verify:
>
> $ ls /sys/devices/system/cpu/*/online
> /sys/devices/system/cpu/cpu1/online /sys/devices/system/cpu/cpu2/online
> /sys/devices/system/cpu/cpu3/online
>
> This is a quad core machine and cpu0 doesn't have the 'online' file
> (2.6.19 kernel). So, if nobody noticed this it's not needed and we can
> just remove CPUs from /sys/devices/system/cpu when they are brought
> offline, right?

No... the online sysfs files are used to show and change cpus'
online/offline state. You wouldn't be able to bring an offlined cpu
back online again.

cpu0 doesn't have an online file on machines which don't support
offlining of the boot cpu.
-
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/

\
 
 \ /
  Last update: 2007-04-03 22:21    [W:4.572 / U:1.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site