aboutsummaryrefslogtreecommitdiff
path: root/arch/ppc/kernel/smp.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-12-13 01:46:20 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-12-13 01:46:20 -0500
commit80c7af4074cbb4cb6be5d35c443ea6d5e8838a84 (patch)
treee900ad4c0beb4f44f0912b847c3319f11ef57d73 /arch/ppc/kernel/smp.c
parent451ec6ab310602515b361418debe93d00f67e273 (diff)
parentd00d598ffbba974d9045ba8b95296655fe2162c5 (diff)
Merge branch 'upstream'
Diffstat (limited to 'arch/ppc/kernel/smp.c')
-rw-r--r--arch/ppc/kernel/smp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ppc/kernel/smp.c b/arch/ppc/kernel/smp.c
index 43b8fc2ca59..becbfa39755 100644
--- a/arch/ppc/kernel/smp.c
+++ b/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);