# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID ae504a49923cd7d4446022f300498d95271ffbd1
# Parent 0a541b530f6a91b0a4de25db25c0ed33f0779202
[XEN][POWERPC] more ofd /cpus fixups
Correct comment on why we prune secondary processors on the devtree.
Get rid of a particularly annoying non-standard cpu property.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/arch/powerpc/ofd_fixup.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletion(-)
diff -r 0a541b530f6a -r ae504a49923c xen/arch/powerpc/ofd_fixup.c
--- a/xen/arch/powerpc/ofd_fixup.c Sat Jan 20 18:57:15 2007 -0500
+++ b/xen/arch/powerpc/ofd_fixup.c Sat Jan 20 18:59:32 2007 -0500
@@ -178,11 +178,20 @@ static ofdn_t ofd_cpus_props(void *m, st
if (ofd_boot_cpu == -1)
ofd_boot_cpu = c;
while (c > 0) {
- /* Since we are not MP yet we prune all but the booting cpu */
+ /* We do not use the OF tree to identify secondary processors
+ * so we must prune them from the tree */
if (c == ofd_boot_cpu) {
+ ofdn_t p;
+
ibm_pft_size[1] = d->arch.htab.log_num_ptes + LOG_PTE_SIZE;
ofd_prop_add(m, c, "ibm,pft-size",
ibm_pft_size, sizeof (ibm_pft_size));
+
+ /* get rid of non-standard properties */
+ p = ofd_prop_find(m, c, "cpu#");
+ if (p > 0) {
+ ofd_prop_remove(m, c, p);
+ }
/* FIXME: Check the the "l2-cache" property who's
* contents is an orphaned phandle? */
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|