WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEN][POWERPC] more ofd /cpus fixups

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN][POWERPC] more ofd /cpus fixups
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Feb 2007 15:00:39 -0800
Delivery-date: Wed, 14 Feb 2007 15:00:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Date 1169337572 18000
# Node ID b8fac1c5e6ae0fc66f880d9a95cfd97ce7335ecf
# Parent  4f03537782338afc5c69fcd6ebe02e7c710fd729
[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 4f0353778233 -r b8fac1c5e6ae 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN][POWERPC] more ofd /cpus fixups, Xen patchbot-unstable <=