Re: [PATCH] Create cpu_sibling_map for PPC64

From: Andrew Morton
Date: Sat Jul 31 2004 - 23:48:27 EST


Matthew Dobson <colpatch@xxxxxxxxxx> wrote:
>
> In light of some proposed changes in the sched_domains code, I coded up
> this little ditty that simply creates and populates a cpu_sibling_map
> for PPC64 machines.

err, did you compile it?

--- 25-power4/arch/ppc64/kernel/smp.c~create-cpu_sibling_map-for-ppc64-fix 2004-07-31 21:43:18.620845384 -0700
+++ 25-power4-akpm/arch/ppc64/kernel/smp.c 2004-07-31 21:43:21.258444408 -0700
@@ -64,7 +64,7 @@ cpumask_t cpu_possible_map = CPU_MASK_NO
cpumask_t cpu_online_map = CPU_MASK_NONE;
cpumask_t cpu_available_map = CPU_MASK_NONE;
cpumask_t cpu_present_at_boot = CPU_MASK_NONE;
-cpumask_t cpu_sibling_map[NR_CPUS] = { [0 .. NR_CPUS-1] = CPU_MASK_NONE };
+cpumask_t cpu_sibling_map[NR_CPUS] = { [0 ... NR_CPUS-1] = CPU_MASK_NONE };

EXPORT_SYMBOL(cpu_online_map);
EXPORT_SYMBOL(cpu_possible_map);
_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/