[PPC64] Tweaks to ppc64 cpu sysfs information
Rusty Russell
rusty at rustcorp.com.au
Mon Nov 29 08:58:11 EST 2004
On Fri, 2004-11-26 at 14:59 +1100, David Gibson wrote:
> Andrew, please apply:
>
> Currently the ppc64 sysfs code registers an entry for each possible
> cpu in sysfs, rather than just online cpus. That makes sense, since
> the sysfs entries are needed to control onlining of the cpus.
> However, this is done even if CONFIG_HOTPLUG_CPU is not set, or if it
> is not a hotplug capable (DLPAR) machine, which is a bit misleading.
> Secondly it also registers all the other sysfs entries (mostly
> performance monitoring controls) on all possible cpus, although they
> are quite meaningless on non-online cpus.
Surely if !CONFIG_HOTPLUG_CPU, then online == possible? If not, it
should be. That would solve part of the problem.
Rusty.
--
A bad analogy is like a leaky screwdriver -- Richard Braakman
More information about the Linuxppc64-dev
mailing list