summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/smp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-11 23:22:47 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 01:12:27 -0800
commit02fead75055246d01af56a45a9d1b311d506da3e (patch)
tree66d66532514e2a58a42d15fd6ba5c3d3c200b7c0 /arch/sparc64/kernel/smp.c
parent7aa6264543f19ceea9b5f386242917296d63be05 (diff)
downloadblackbird-obmc-linux-02fead75055246d01af56a45a9d1b311d506da3e.tar.gz
blackbird-obmc-linux-02fead75055246d01af56a45a9d1b311d506da3e.zip
[SPARC64]: Do not try to synchronize %stick registers on SUN4V.
Writes by privileged code are not allowed. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/smp.c')
-rw-r--r--arch/sparc64/kernel/smp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index d637168ce37d..2dbe008d6b7a 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/arch/sparc64/kernel/smp.c
@@ -1278,7 +1278,11 @@ int __devinit __cpu_up(unsigned int cpu)
if (!cpu_isset(cpu, cpu_online_map)) {
ret = -ENODEV;
} else {
- smp_synchronize_one_tick(cpu);
+ /* On SUN4V, writes to %tick and %stick are
+ * not allowed.
+ */
+ if (tlb_type != hypervisor)
+ smp_synchronize_one_tick(cpu);
}
}
return ret;
OpenPOWER on IntegriCloud