Messages in this thread | | | Date | Thu, 3 May 2007 15:42:10 +0200 | From | Heiko Carstens <> | Subject | Re: /sys/devices/system/cpu/*: Present cpus or Possible cpus |
| |
On Thu, May 03, 2007 at 12:22:35AM +0530, Gautham R Shenoy wrote: > On Wed, May 02, 2007 at 11:37:57AM -0500, Nathan Lynch wrote: > > Hi Gautham- > > > > I believe that the powerpc behavior was established before > > cpu_present_map was introduced. > > Ok. I guess the same is the reason with a few other architectures like > s390.
No, the reason for s390 is that we don't get any notification if a new cpu gets attached, if running under z/VM (a hypervisor). But since the cpuX/online attribute must exist to bring a cpu online, the idea was to create the directories for all possible cpus and if somebody tries to online a cpu the code will scan for present and unused cpus and uses the first one... Kind of stupid, but works. - 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/
| |