diff options
author | Chris Metcalf | 2014-03-06 21:31:59 +0100 |
---|---|---|
committer | Chris Metcalf | 2014-03-06 21:31:59 +0100 |
commit | 2e285458e62fe202cb81b831f41779c7e7e5cbe6 (patch) | |
tree | c1a8160b5667607b3cc346afe689d84f3f9aa17a /arch/tile | |
parent | tile: avoid overflow in ns2cycles (diff) | |
download | kernel-qcow2-linux-2e285458e62fe202cb81b831f41779c7e7e5cbe6.tar.gz kernel-qcow2-linux-2e285458e62fe202cb81b831f41779c7e7e5cbe6.tar.xz kernel-qcow2-linux-2e285458e62fe202cb81b831f41779c7e7e5cbe6.zip |
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')
-rw-r--r-- | arch/tile/kernel/messaging.c | 4 |
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) #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; |