Skip to content

Commit

Permalink
make sure we don't set affinity for NONE interrupts
Browse files Browse the repository at this point in the history
Bug report by Maxim Patlasov


git-svn-id: https://irqbalance.googlecode.com/svn/trunk@19 46b42954-3823-0410-bd82-eb80b452c9b5
  • Loading branch information
arjanvandeven committed Aug 28, 2007
1 parent 2e5b0ba commit a0af684
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion activate.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ void activate_mapping(void)
irq = iter->data;
iter = g_list_next(iter);

if (!cpus_equal(irq->mask, irq->old_mask)) {
/* don't set the level if it's a NONE irq, or if there is
* no change */
if (irq->balance_level != BALANCE_NONE &&
!cpus_equal(irq->mask, irq->old_mask)) {
char buf[PATH_MAX];
FILE *file;
sprintf(buf, "/proc/irq/%i/smp_affinity", irq->number);
Expand Down

0 comments on commit a0af684

Please sign in to comment.