On Wed, 2010-04-07 at 10:27 +0530, Vaidyanathan Srinivasan wrote:

> > Check the result. Also that's not a nice way to do that, you should look
> > for /cpus by path I reckon.
> 
> I will check the return code, but why do you feel getting the node by
> path is better?  Is there any race, or we may have duplicate "cpus"
> node?

Well, you never really know what might be down the device-tree :-) /cpus
is well defined where it is, while god knows what would happen if
somebody had the weird idea to have something called "cpus" below some
device driver for whatever reason they might even.

Cheers,
Ben.


_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to