ia64/xen-unstable

changeset 13934:b8fac1c5e6ae

[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@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sat Jan 20 18:59:32 2007 -0500 (2007-01-20)
parents 4f0353778233
children 3dd92f0d8fd6
files xen/arch/powerpc/ofd_fixup.c
line diff
     1.1 --- a/xen/arch/powerpc/ofd_fixup.c	Sat Jan 20 18:57:15 2007 -0500
     1.2 +++ b/xen/arch/powerpc/ofd_fixup.c	Sat Jan 20 18:59:32 2007 -0500
     1.3 @@ -178,12 +178,21 @@ static ofdn_t ofd_cpus_props(void *m, st
     1.4      if (ofd_boot_cpu == -1)
     1.5          ofd_boot_cpu = c;
     1.6      while (c > 0) {
     1.7 -        /* Since we are not MP yet we prune all but the booting cpu */
     1.8 +        /* We do not use the OF tree to identify secondary processors
     1.9 +         * so we must prune them from the tree */
    1.10          if (c == ofd_boot_cpu) {
    1.11 +            ofdn_t p;
    1.12 +
    1.13              ibm_pft_size[1] = d->arch.htab.log_num_ptes + LOG_PTE_SIZE;
    1.14              ofd_prop_add(m, c, "ibm,pft-size",
    1.15                           ibm_pft_size, sizeof (ibm_pft_size));
    1.16  
    1.17 +            /* get rid of non-standard properties */
    1.18 +            p = ofd_prop_find(m, c, "cpu#");
    1.19 +            if (p > 0) {
    1.20 +                ofd_prop_remove(m, c, p);
    1.21 +            }
    1.22 +
    1.23              /* FIXME: Check the the "l2-cache" property who's
    1.24               * contents is an orphaned phandle? */
    1.25          } else