1. 23 7月, 2015 7 次提交
  2. 20 7月, 2015 3 次提交
  3. 17 7月, 2015 14 次提交
  4. 12 7月, 2015 16 次提交
    • T
      irqchip/mips-gic: Use irq_set_chip_handler_name_locked · a595fc51
      Thomas Gleixner 提交于
      Use irq_set_handler_name_locked() as it avoids a redundant lookup of
      the irq descriptor.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      a595fc51
    • T
      irqchip/metag-ext: Use irq_set_chip_handler_name_locked() · 0a2b6497
      Thomas Gleixner 提交于
      Hand in irq_data and avoid the redundant lookup of irq_desc.
      
      Originally-from: Jiang Liu <jiang.liu@linux.intel.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      0a2b6497
    • T
      irqchip/vt8500: Use irq_set_handler_locked() · d2aa914d
      Thomas Gleixner 提交于
      Use irq_set_handler_locked() as it avoids a redundant lookup of the
      irq descriptor.
      
      Search and replacement was done with coccinelle:
      
      @@
      struct irq_data *d;
      expression E1;
      @@
      
      -__irq_set_handler_locked(d->irq, E1);
      +irq_set_handler_locked(d, E1);
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Julia Lawall <julia.lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      d2aa914d
    • J
      irqchip: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc · 5b29264c
      Jiang Liu 提交于
      Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
      already have a pointer to corresponding irq_desc.
      Signed-off-by: NJiang Liu <jiang.liu@linux.intel.com>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Link: http://lkml.kernel.org/r/1433391238-19471-11-git-send-email-jiang.liu@linux.intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
      5b29264c
    • J
      irqchip/mips-gic: Use access helper irq_data_get_affinity_mask() · 72f86db4
      Jiang Liu 提交于
      Use access helper irq_data_get_affinity_mask() to hide implementation
      details of struct irq_desc.
      
      [ tglx: Verified with coccinelle ]
      Signed-off-by: NJiang Liu <jiang.liu@linux.intel.com>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Yinghai Lu <yinghai@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Link: http://lkml.kernel.org/r/1433145945-789-30-git-send-email-jiang.liu@linux.intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
      72f86db4
    • T
      irqchip/vic: Consolidate chained IRQ handler install/remove · 9f213541
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      9f213541
    • T
      irqchip/versatile: Consolidate chained IRQ handler install/remove · fcd3c5be
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      fcd3c5be
    • T
      irqchip/tb10x: Consolidate chained IRQ handler install/remove · 22890b0d
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      22890b0d
    • T
      irqchip/sunxi-nmi: Consolidate chained IRQ handler install/remove · 3200a712
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: linux-arm-kernel@lists.infradead.org
      3200a712
    • T
      irqchip/orion: Consolidate chained IRQ handler install/remove · 07d22c23
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      07d22c23
    • T
      irqchip/metag: Consolidate chained IRQ handler install/remove · 832b404e
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: linux-metag@vger.kernel.org
      832b404e
    • T
      irqchip/imgpdc: Consolidate chained IRQ handler install/remove · bc4d2c07
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      bc4d2c07
    • T
      irqchip/gic: Consolidate chained IRQ handler install/remove · 4d83fcf8
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      4d83fcf8
    • T
      irqchip/brcmstb-l2: Consolidate chained IRQ handler install/remove · f286c173
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: linux-mips@linux-mips.org
      f286c173
    • T
      irqchip/bcm7120-l2: Consolidate chained IRQ handler install/remove · 99e32ab1
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: linux-mips@linux-mips.org
      99e32ab1
    • T
      irqchip/bcm7038-l1: Consolidate chained IRQ handler install/remove · 3a7946ee
      Thomas Gleixner 提交于
      Chained irq handlers usually set up handler data as well. We now have
      a function to set both under irq_desc->lock. Replace the two calls
      with one.
      
      Search and conversion was done with coccinelle:
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      |
      -irq_set_handler_data(E1, E2);
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      
      @@
      expression E1, E2, E3;
      @@
      (
      -if (irq_set_handler_data(E1, E2) != 0)
      -   BUG();
      ...
      |
      -irq_set_handler_data(E1, E2);
      ...
      )
      -irq_set_chained_handler(E1, E3);
      +irq_set_chained_handler_and_data(E1, E3, E2);
      Reported-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Kevin Cernekee <cernekee@gmail.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: linux-mips@linux-mips.org
      3a7946ee