mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
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>
This commit is contained in:
parent
767f30210b
commit
2e285458e6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user