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

Paul Mackerras paulus at samba.org
Thu Jan 27 13:27:01 EST 2005


Olof Johansson writes:

> 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.

Changing hw_cpu_id to a signed quantity sounds cleaner to me.

Paul.



More information about the Linuxppc64-dev mailing list