Skip to content

Commit

Permalink
bug-893478_warn-once
Browse files Browse the repository at this point in the history
Only warn once for affinity hint subset empty irqs
  • Loading branch information
posophe committed Jan 22, 2015
1 parent eb61d19 commit c9e5f36
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions activate.c
Expand Up @@ -84,11 +84,14 @@ static void activate_mapping(struct irq_info *info, void *data __attribute__((un
if ((info->hint_policy == HINT_POLICY_SUBSET) &&
(!cpus_empty(info->affinity_hint))) {
cpus_and(applied_mask, applied_mask, info->affinity_hint);
if (!cpus_intersects(applied_mask, unbanned_cpus))
log(TO_ALL, LOG_WARNING,
"irq %d affinity_hint subset empty\n",
info->irq);
else
if (!cpus_intersects(applied_mask, unbanned_cpus)) {
if (!info->warned) {
info->warned = 1;
log(TO_ALL, LOG_WARNING,
"irq %d affinity_hint subset empty\n",
info->irq);
}
} else
valid_mask = 1;
} else {
valid_mask = 1;
Expand Down

0 comments on commit c9e5f36

Please sign in to comment.