Commit 02fead75 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Do not try to synchronize %stick registers on SUN4V.



Writes by privileged code are not allowed.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7aa62645
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1278,6 +1278,10 @@ int __devinit __cpu_up(unsigned int cpu)
		if (!cpu_isset(cpu, cpu_online_map)) {
			ret = -ENODEV;
		} else {
			/* On SUN4V, writes to %tick and %stick are
			 * not allowed.
			 */
			if (tlb_type != hypervisor)
				smp_synchronize_one_tick(cpu);
		}
	}