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:
sephe 2016-05-24 05:18:26 +00:00
parent 34fcd5745a
commit 3152684792

View File

@ -131,11 +131,9 @@ vmbus_msg_task(void *arg __unused, int pending __unused)
* 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.