lkml.org 
[lkml]   [2017]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 45/55] xen/events: Add support for effective affinity mask
    Update the effective affinity mask when an interrupt was successfully
    targeted to a CPU.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    drivers/xen/events/events_base.c | 6 +++++-
    1 file changed, 5 insertions(+), 1 deletion(-)

    --- a/drivers/xen/events/events_base.c
    +++ b/drivers/xen/events/events_base.c
    @@ -1343,8 +1343,12 @@ static int set_affinity_irq(struct irq_d
    bool force)
    {
    unsigned tcpu = cpumask_first_and(dest, cpu_online_mask);
    + int ret = rebind_irq_to_cpu(data->irq, tcpu);

    - return rebind_irq_to_cpu(data->irq, tcpu);
    + if (!ret)
    + irq_data_update_effective_affinity(data, cpumask_of(tcpu));
    +
    + return ret;
    }

    static void enable_dynirq(struct irq_data *data)

    \
     
     \ /
      Last update: 2017-06-20 02:02    [W:4.289 / U:0.832 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site