hyperv/vmbus: Pass vmbus_softc and curcpu to hv_vmbus_isr()

MFC after:	1 week
Sponsored by:	Microsoft OSTC
Differential Revision:	https://reviews.freebsd.org/D6498
This commit is contained in:
Sepherosa Ziehau 2016-05-24 05:18:26 +00:00
parent a995872175
commit 86931e66f6

View File

@ -131,11 +131,9 @@ handled:
* message to process - an event or a channel message.
*/
static inline int
hv_vmbus_isr(struct trapframe *frame)
hv_vmbus_isr(struct vmbus_softc *sc, struct trapframe *frame, int cpu)
{
struct vmbus_softc *sc = vmbus_get_softc();
hv_vmbus_message *msg, *msg_base;
int cpu = curcpu;
/*
* The Windows team has advised that we check for events
@ -202,7 +200,7 @@ hv_vector_handler(struct trapframe *trap_frame)
*/
(*VMBUS_SC_PCPU_GET(sc, intr_cnt, cpu))++;
hv_vmbus_isr(trap_frame);
hv_vmbus_isr(sc, trap_frame, cpu);
/*
* Enable preemption.