Skip to content

Commit 6103063

Browse files
smaeulMarc Zyngier
authored andcommitted
genirq: Drop redundant irq_init_effective_affinity
It does exactly the same thing as irq_data_update_effective_affinity. Signed-off-by: Samuel Holland <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0e6c027 commit 6103063

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

kernel/irq/manage.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,8 @@ static void irq_validate_effective_affinity(struct irq_data *data)
205205
pr_warn_once("irq_chip %s did not update eff. affinity mask of irq %u\n",
206206
chip->name, data->irq);
207207
}
208-
209-
static inline void irq_init_effective_affinity(struct irq_data *data,
210-
const struct cpumask *mask)
211-
{
212-
cpumask_copy(irq_data_get_effective_affinity_mask(data), mask);
213-
}
214208
#else
215209
static inline void irq_validate_effective_affinity(struct irq_data *data) { }
216-
static inline void irq_init_effective_affinity(struct irq_data *data,
217-
const struct cpumask *mask) { }
218210
#endif
219211

220212
int irq_do_set_affinity(struct irq_data *data, const struct cpumask *mask,
@@ -347,7 +339,7 @@ static bool irq_set_affinity_deactivated(struct irq_data *data,
347339
return false;
348340

349341
cpumask_copy(desc->irq_common_data.affinity, mask);
350-
irq_init_effective_affinity(data, mask);
342+
irq_data_update_effective_affinity(data, mask);
351343
irqd_set(data, IRQD_AFFINITY_SET);
352344
return true;
353345
}

0 commit comments

Comments
 (0)