[PATCH] show -1 for physical_id of non-present cpus

Nathan Lynch nathanl at austin.ibm.com
Wed Jan 26 15:41:03 EST 2005


On Tue, 2005-01-25 at 22:11 -0600, Olof Johansson wrote:
> Nathan Lynch wrote:
> 
> >Make the physical_id cpu attribute on ppc64 show -1 instead of 65535
> >for non-present cpus.
> >
> 
> Good catch.
> 
> I'm not sure if I prefer your patch or just switching hw_cpu_id to a s16 
> and using %d. Either way is fine with me.

fwiw, I plan to to make the issue moot eventually by having only present
cpus show up in sysfs, but that's not going to happen in time for
2.6.11.

Nathan




More information about the Linuxppc64-dev mailing list