Skip to content

Commit

Permalink
Revert "genirq: Restrict effective affinity to interrupts actually us…
Browse files Browse the repository at this point in the history
…ing it"

This reverts commit 74def74.

The change to the helper function is only correct for the /proc/irq/
readout usage, but breaks the existing x86 usage of that function.

Reported-by: Yanko Kaneti <yaneti@declera.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
Thomas Gleixner committed Sep 21, 2017
1 parent c52f56a commit 0551968
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -783,10 +783,7 @@ static inline struct cpumask *irq_data_get_affinity_mask(struct irq_data *d)
static inline
struct cpumask *irq_data_get_effective_affinity_mask(struct irq_data *d)
{
if (!cpumask_empty(d->common->effective_affinity))
return d->common->effective_affinity;

return d->common->affinity;
return d->common->effective_affinity;
}
static inline void irq_data_update_effective_affinity(struct irq_data *d,
const struct cpumask *m)
Expand Down

0 comments on commit 0551968

Please sign in to comment.