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

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
......@@ -68,8 +68,8 @@ void hv_message_intr(struct pt_regs *regs, int intnum)
#endif
while (1) {
rmi = hv_receive_message(__get_cpu_var(msg_state),
(HV_VirtAddr) message,
HV_MsgState *state = this_cpu_ptr(&msg_state);
rmi = hv_receive_message(*state, (HV_VirtAddr) message,
sizeof(message));
if (rmi.msglen == 0)
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment