Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e285458 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

tile: don't use __get_cpu_var() with structure-typed arguments



This no longer works with the new per-cpu infrastructure.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 767f3021
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -68,8 +68,8 @@ void hv_message_intr(struct pt_regs *regs, int intnum)
#endif
#endif


	while (1) {
	while (1) {
		rmi = hv_receive_message(__get_cpu_var(msg_state),
		HV_MsgState *state = this_cpu_ptr(&msg_state);
					 (HV_VirtAddr) message,
		rmi = hv_receive_message(*state, (HV_VirtAddr) message,
					 sizeof(message));
					 sizeof(message));
		if (rmi.msglen == 0)
		if (rmi.msglen == 0)
			break;
			break;