lkml.org 
[lkml]   [2011]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 03/75] genirq: Rremove redundant check
    IRQ_NO_BALANCING is already checked in irq_can_set_affinity() above,
    no need to check it again.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    kernel/irq/manage.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    Index: linux-2.6-tip/kernel/irq/manage.c
    ===================================================================
    --- linux-2.6-tip.orig/kernel/irq/manage.c
    +++ linux-2.6-tip/kernel/irq/manage.c
    @@ -256,6 +256,7 @@ EXPORT_SYMBOL_GPL(irq_set_affinity_notif
    */
    static int setup_affinity(unsigned int irq, struct irq_desc *desc)
    {
    + /* Excludes PER_CPU and NO_BALANCE interrupts */
    if (!irq_can_set_affinity(irq))
    return 0;

    @@ -263,7 +264,7 @@ static int setup_affinity(unsigned int i
    * Preserve an userspace affinity setup, but make sure that
    * one of the targets is online.
    */
    - if (desc->status & (IRQ_AFFINITY_SET | IRQ_NO_BALANCING)) {
    + if (desc->status & (IRQ_AFFINITY_SET)) {
    if (cpumask_any_and(desc->irq_data.affinity, cpu_online_mask)
    < nr_cpu_ids)
    goto set_affinity;



    \
     
     \ /
      Last update: 2011-02-11 00:57    [W:0.045 / U:0.556 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site