Re: [PATCH 3/7] genirq/affinity: factor out a irq_affinity_set helper

2017-05-23 Thread Christoph Hellwig
On Sun, May 21, 2017 at 09:03:06PM +0200, Thomas Gleixner wrote: > > +{ > > + struct irq_data *data = irq_desc_get_irq_data(desc); > > + struct irq_chip *chip = irq_data_get_irq_chip(data); > > + bool ret = false; > > + > > + if (!irqd_can_move_in_process_context(data) && chip->irq_mask) >

Re: [PATCH 3/7] genirq/affinity: factor out a irq_affinity_set helper

2017-05-21 Thread Thomas Gleixner
On Fri, 19 May 2017, Christoph Hellwig wrote: > Factor out code from the x86 cpu hot plug code to program the affinity > for a vector for a hot plug / hot unplug event. > +bool irq_affinity_set(int irq, struct irq_desc *desc, const cpumask_t *mask) > +{ > + struct irq_data *data =