[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>
This commit is contained in:
@@ -1278,6 +1278,10 @@ int __devinit __cpu_up(unsigned int cpu)
|
|||||||
if (!cpu_isset(cpu, cpu_online_map)) {
|
if (!cpu_isset(cpu, cpu_online_map)) {
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
} else {
|
} else {
|
||||||
|
/* On SUN4V, writes to %tick and %stick are
|
||||||
|
* not allowed.
|
||||||
|
*/
|
||||||
|
if (tlb_type != hypervisor)
|
||||||
smp_synchronize_one_tick(cpu);
|
smp_synchronize_one_tick(cpu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user