Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102640114
D31188.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
D31188.diff
View Options
diff --git a/sys/x86/xen/xen_intr.c b/sys/x86/xen/xen_intr.c
--- a/sys/x86/xen/xen_intr.c
+++ b/sys/x86/xen/xen_intr.c
@@ -260,7 +260,7 @@
* object or NULL.
*/
static struct xenisrc *
-xen_intr_alloc_isrc(enum evtchn_type type)
+xen_intr_alloc_isrc(void)
{
static int warned;
struct xenisrc *isrc;
@@ -279,7 +279,6 @@
KASSERT(isrc->xi_arch.intsrc.is_handlers == 0,
("Free evtchn still has handlers"));
- isrc->xi_type = type;
return (isrc);
}
@@ -302,7 +301,6 @@
isrc = malloc(sizeof(*isrc), M_XENINTR, M_WAITOK | M_ZERO);
isrc->xi_arch.intsrc.is_pic = &xen_intr_pic;
isrc->xi_arch.vector = vector;
- isrc->xi_type = type;
error = intr_register_source(&isrc->xi_arch.intsrc);
if (error != 0)
panic("%s(): failed registering interrupt %u, error=%d\n",
@@ -394,11 +392,12 @@
}
*port_handlep = NULL;
- isrc = xen_intr_alloc_isrc(type);
+ isrc = xen_intr_alloc_isrc();
if (isrc == NULL)
return (ENOSPC);
isrc->xi_cookie = NULL;
+ isrc->xi_type = type;
isrc->xi_port = local_port;
isrc->xi_close = false;
isrc->xi_cpu = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 5:10 AM (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14653505
Default Alt Text
D31188.diff (1 KB)
Attached To
Mode
D31188: xen/intr: move isrc allocation out of xen_intr_bind_isrc()
Attached
Detach File
Event Timeline
Log In to Comment