Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102800449
D6408.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6408.diff
View Options
Index: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
@@ -77,11 +77,9 @@
static void
vmbus_msg_swintr(void *arg, int pending __unused)
{
- int cpu;
hv_vmbus_message *msg;
- cpu = (int)(long)arg;
- msg = ((hv_vmbus_message *)hv_vmbus_g_context.syn_ic_msg_page[cpu]) +
+ msg = ((hv_vmbus_message *)hv_vmbus_g_context.syn_ic_msg_page[curcpu]) +
HV_VMBUS_MESSAGE_SINT;
for (;;) {
const hv_vmbus_channel_msg_table_entry *entry;
@@ -136,12 +134,10 @@
hv_vmbus_isr(struct trapframe *frame)
{
struct vmbus_softc *sc = vmbus_get_softc();
- int cpu;
+ int cpu = curcpu;
hv_vmbus_message *msg;
void *page_addr;
- cpu = PCPU_GET(cpuid);
-
/*
* The Windows team has advised that we check for events
* before checking for messages. This is the way they do it
@@ -447,7 +443,7 @@
taskqueue_start_threads_cpuset(&hv_vmbus_g_context.hv_msg_tq[j],
1, PI_NET, &cpu_mask, "hvmsg%d", j);
TASK_INIT(&hv_vmbus_g_context.hv_msg_task[j], 0,
- vmbus_msg_swintr, (void *)(long)j);
+ vmbus_msg_swintr, NULL);
/*
* Prepare the per cpu msg and event pages to be called on each cpu.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 8:45 AM (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14694357
Default Alt Text
D6408.diff (1 KB)
Attached To
Mode
D6408: hyperv/vmbus: Utilize curcpu
Attached
Detach File
Event Timeline
Log In to Comment