On Wed, 2009-05-27 at 09:41 -0500, Nathan Fontenot wrote: > This patch updates the output from /proc/ppc64/lparcfg to display the > processor virtualization resource allocations for a shared processor > partition. > > This information is already gathered via the h_get_ppp call, we just > have to make sure that the ibm,partition-performance-parameters-level > property is >= 1 to ensure that the information is valid.
> @@ -267,6 +281,28 @@ > seq_printf(m, "capped=%d\n", ppp_data.capped); > seq_printf(m, "unallocated_capacity=%lld\n", > ppp_data.unallocated_entitlement); > + > + /* The last bits of information returned from h_get_ppp are only > + * valid if the ibm,partition-performance-parameters-level > + * property is >= 1. > + */ > + root = of_find_node_by_path("/"); > + if (root) { > + perf_level = of_get_property(root, > + "ibm,partition-performance-parameters-level", > + NULL); > + if (perf_level && (*perf_level >= 1)) { Yep that looks better, thanks. cheers
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev