openwrt-packages/utils/irqbalance/patches/020-mark-EINVAL-error-perma...

16 lines
585 B
Diff

--- a/activate.c
+++ b/activate.c
@@ -98,11 +98,11 @@ error:
case ENOSPC: /* Specified CPU APIC is full. */
case EAGAIN: /* Interrupted by signal. */
case EBUSY: /* Affinity change already in progress. */
- case EINVAL: /* IRQ would be bound to no CPU. */
case ERANGE: /* CPU in mask is offline. */
case ENOMEM: /* Kernel cannot allocate CPU mask. */
/* Do not blacklist the IRQ on transient errors. */
break;
+ case EINVAL: /* IRQ would be bound to no CPU. */
default:
/* Any other error is considered permanent. */
info->flags |= IRQ_FLAG_AFFINITY_UNMANAGED;