Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146047053
D11957.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
585 B
Referenced Files
None
Subscribers
None
D11957.id.diff
View Options
Index: head/sys/kern/subr_intr.c
===================================================================
--- head/sys/kern/subr_intr.c
+++ head/sys/kern/subr_intr.c
@@ -1169,9 +1169,17 @@
u_int
intr_irq_next_cpu(u_int last_cpu, cpuset_t *cpumask)
{
+ u_int cpu;
- if (!irq_assign_cpu || mp_ncpus == 1)
- return (PCPU_GET(cpuid));
+ KASSERT(!CPU_EMPTY(cpumask), ("%s: Empty CPU mask", __func__));
+ if (!irq_assign_cpu || mp_ncpus == 1) {
+ cpu = PCPU_GET(cpuid);
+
+ if (CPU_ISSET(cpu, cpumask))
+ return (curcpu);
+
+ return (CPU_FFS(cpumask) - 1);
+ }
do {
last_cpu++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 28, 8:41 AM (22 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29060966
Default Alt Text
D11957.id.diff (585 B)
Attached To
Mode
D11957: Only return the current cpu if it's in the cpumask
Attached
Detach File
Event Timeline
Log In to Comment