diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-11 23:22:47 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 01:12:27 -0800 |
commit | 02fead75055246d01af56a45a9d1b311d506da3e (patch) | |
tree | 66d66532514e2a58a42d15fd6ba5c3d3c200b7c0 /arch | |
parent | 7aa6264543f19ceea9b5f386242917296d63be05 (diff) | |
download | kernel_samsung_smdk4412-02fead75055246d01af56a45a9d1b311d506da3e.zip kernel_samsung_smdk4412-02fead75055246d01af56a45a9d1b311d506da3e.tar.gz kernel_samsung_smdk4412-02fead75055246d01af56a45a9d1b311d506da3e.tar.bz2 |
[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')
-rw-r--r-- | arch/sparc64/kernel/smp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index d637168..2dbe008 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; |