aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/messaging.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2014-03-06 15:31:59 -0500
committerChris Metcalf <cmetcalf@tilera.com>2014-03-06 15:31:59 -0500
commit2e285458e62fe202cb81b831f41779c7e7e5cbe6 (patch)
treec1a8160b5667607b3cc346afe689d84f3f9aa17a /arch/tile/kernel/messaging.c
parent767f30210bee1bb74ab042e237c2a21e77874070 (diff)
tile: don't use __get_cpu_var() with structure-typed arguments
This no longer works with the new per-cpu infrastructure. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/messaging.c')
-rw-r--r--arch/tile/kernel/messaging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/kernel/messaging.c b/arch/tile/kernel/messaging.c
index 00331af9525d..7867266f9716 100644
--- a/arch/tile/kernel/messaging.c
+++ b/arch/tile/kernel/messaging.c
@@ -68,8 +68,8 @@ void hv_message_intr(struct pt_regs *regs, int intnum)
68#endif 68#endif
69 69
70 while (1) { 70 while (1) {
71 rmi = hv_receive_message(__get_cpu_var(msg_state), 71 HV_MsgState *state = this_cpu_ptr(&msg_state);
72 (HV_VirtAddr) message, 72 rmi = hv_receive_message(*state, (HV_VirtAddr) message,
73 sizeof(message)); 73 sizeof(message));
74 if (rmi.msglen == 0) 74 if (rmi.msglen == 0)
75 break; 75 break;