From 80682b84270b6704ace1028975d1f26fb9cf1c98 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sat, 10 Dec 2005 18:41:50 -0800 Subject: [PATCH] --- yaml --- r: 14989 b: refs/heads/master c: ef969434005e772218c0b8086539804605070fa8 h: refs/heads/master i: 14987: de4002b4c1e78c4bcb6426d01946e00bdb04084c v: v3 --- [refs] | 2 +- trunk/arch/ppc/kernel/smp.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 489ff6939229..e8281ad11e30 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b39f9485e6cfe1bf21b18b60fd8c631a72a1304d +refs/heads/master: ef969434005e772218c0b8086539804605070fa8 diff --git a/trunk/arch/ppc/kernel/smp.c b/trunk/arch/ppc/kernel/smp.c index 43b8fc2ca591..becbfa397556 100644 --- a/trunk/arch/ppc/kernel/smp.c +++ b/trunk/arch/ppc/kernel/smp.c @@ -301,6 +301,10 @@ void __init smp_prepare_cpus(unsigned int max_cpus) /* Probe platform for CPUs: always linear. */ num_cpus = smp_ops->probe(); + + if (num_cpus < 2) + smp_tb_synchronized = 1; + for (i = 0; i < num_cpus; ++i) cpu_set(i, cpu_possible_map);