Skip to content

Commit

Permalink
tile: don't use __get_cpu_var() with structure-typed arguments
Browse files Browse the repository at this point in the history
This no longer works with the new per-cpu infrastructure.

Signed-off-by: Chris Metcalf <[email protected]>
  • Loading branch information
cmetcalf-tilera committed Mar 6, 2014
1 parent 767f302 commit 2e28545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/tile/kernel/messaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e28545

Please sign in to comment.