Skip to content

genirq: Another round of tree wide cleanups

Thomas Gleixner linux-arm-kernel linux-ia64 linux-metag linux-omap linux-pci linux-s390 linux-sh linuxppc-dev lkml sparclinux xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest26 patches 42 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26powerpc: irq: Use generic_handle_irqarch/powerpc/kernel/irq.c+2 -60 replies
2/26powerpc:evh_pic: Kill irq_desc abusearch/powerpc/sysdev/ehv_pic.c+2 -80 replies
3/26powerpc: eeh: Kill another abuse of irq_descarch/powerpc/kernel/eeh_driver.c+21 -53 replies
4/26xtensa: Use irq_set_affinity instead of homebrewn codearch/xtensa/kernel/irq.c+3 -171 reply
5/26sh: Use irq_set_affinity instead of homebrewn codearch/sh/kernel/irq.c+1 -150 replies
6/26metag: Use irq_set_affinity instead of homebrewn codearch/metag/kernel/irq.c+3 -175 replies
7/26pci: pcie-designware: Remove irq_desc abusedrivers/pci/host/pcie-designware.c+1 -30 replies
8/26arm: Replace various irq_desc accessesarch/arm/mach-imx/pm-imx6q.c arch/arm/mach-omap1/ams-delta-fiq.c+5 -93 replies
9/26arm: mmp: Remove pointless fiddling with irq internalsarch/arm/mach-mmp/pm-mmp2.c arch/arm/mach-mmp/pm-pxa910.c+5 -318 replies
10/26blackfin:Use generic /proc/interrupts implementationarch/blackfin/Kconfig arch/blackfin/kernel/irqchip.c+8 -291 reply
11/26genirq: Add a kstat helper to increment irq statsinclude/linux/kernel_stat.h kernel/irq/irqdesc.c+12 -50 replies
12/26mips: Use the core irq stats functionarch/mips/kernel/smtc.c arch/mips/sgi-ip22/ip22-int.c arch/mips/sgi-ip22/ip22-time.c +2 more+5 -50 replies
13/26sparc: Use the core irq stats functionarch/sparc/kernel/time_64.c+1 -11 reply
14/26mn10300: Use the core irq stats functionarch/mn10300/kernel/mn10300-watchdog.c+1 -10 replies
15/26x86: xen: Use the core irq stats functionarch/x86/xen/spinlock.c+1 -12 replies
16/26s390: cio: Use the core irq stats functiondrivers/s390/cio/cio.c+1 -40 replies
17/26ia64: Use the core irq stats functionarch/ia64/kernel/irq_ia64.c+4 -60 replies
18/26xen: Use the proper irq functionsdrivers/xen/events/events_2l.c drivers/xen/events/events_base.c drivers/xen/events/events_fifo.c+8 -224 replies
19/26genirq: Provide irqd_irq_has_actions()include/linux/irq.h kernel/irq/manage.c+12 -10 replies
20/26genirq: Provide irq_is_allocated()kernel/irq/irqdesc.c+11 -00 replies
21/26xen: Get rid of the last irq_desc abusedrivers/xen/events/events_base.c+5 -146 replies
22/26x86: Add proper vector accounting for HyperVarch/x86/include/asm/hardirq.h arch/x86/kernel/irq.c+9 -02 replies
23/26xen: Add proper irq accounting for HYPERCALL vectordrivers/xen/events/events_base.c+1 -02 replies
24/26genirq: Provide handle_percpu_simple_irq()include/linux/irq.h kernel/irq/chip.c+16 -01 reply
25/26x86: hyperv: Cleanup the irq messarch/x86/include/asm/mshyperv.h arch/x86/kernel/cpu/mshyperv.c drivers/hv/vmbus_drv.c+66 -743 replies
26/26genirq: Move kstats_inc_irqs_this_cpu() to coreinclude/linux/kernel_stat.h kernel/irq/internals.h+7 -80 replies

Reviews trailers per patch

8 of 26 patches have a Reviewed-by or Acked-by.

PatchThomas GleixnerMax FilippovShawn GuoDavid VrabelTony LindgrenK. Y. SrinivasanDavid S. Miller
1/26
2/26
3/26
4/26A-b
5/26
6/26
7/26
8/26A-b A-b
9/26
10/26
11/26
12/26
13/26A-b
14/26
15/26R-b R-b
16/26
17/26
18/26R-b R-b
19/26Not-Yet-Signed-off-by
20/26Not-Yet-Signed-off-by
21/26R-b R-b
22/26
23/26R-b R-b
24/26Not-Yet-Signed-off-by
25/26A-b
26/26

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [patch 00/26] genirq: Another round of tree wide cleanups

Since the last tree wide sweep a serious amount of braindamage, blatant abuse and serious trainwrecks of the generic irq subsystem has found its way into mainline.

The top score on the shitlist definitely gets this gem:

    #include "../../../kernel/irq/settings.h"

tightly followed by the HYpedPERVersity irq handling.

The series contains the following cleanups:

- Rewrite abusive code written by incomptetent ...

- Replace open coded constructs by the proper core functions.

- Replace common patterns by a core implementation

This adds a few functions to the core code, which might be not necessary at all, but I'm not masochistic enough to try to dechipher the undocumented mess of Xen and HyperV.

The releavant patches have a Not-Yet-SOB tag and might be dropped if the maintainers of the code in question can't come up with reasonable explanations why they are necessary at all.

Thanks,

tglx

---
 arch/arm/mach-imx/pm-imx6q.c           |    7 +-
 arch/arm/mach-mmp/pm-mmp2.c            |   16 -----
 arch/arm/mach-mmp/pm-pxa910.c          |   20 +-----
 arch/arm/mach-omap1/ams-delta-fiq.c    |    7 --
 arch/blackfin/Kconfig                  |    1 
 arch/blackfin/kernel/irqchip.c         |   36 ++----------
 arch/ia64/kernel/irq_ia64.c            |   10 +--
 arch/metag/kernel/irq.c                |   20 +-----
 arch/mips/kernel/smtc.c                |    2 
 arch/mips/sgi-ip22/ip22-int.c          |    2 
 arch/mips/sgi-ip22/ip22-time.c         |    2 
 arch/mips/sibyte/bcm1480/smp.c         |    2 
 arch/mips/sibyte/sb1250/smp.c          |    2 
 arch/mn10300/kernel/mn10300-watchdog.c |    2 
 arch/powerpc/kernel/eeh_driver.c       |   26 +++++++-
 arch/powerpc/kernel/irq.c              |    8 --
 arch/powerpc/sysdev/ehv_pic.c          |   10 ---
 arch/sh/kernel/irq.c                   |   16 -----
 arch/sparc/kernel/time_64.c            |    2 
 arch/x86/include/asm/hardirq.h         |    3 +
 arch/x86/include/asm/mshyperv.h        |    4 +
 arch/x86/kernel/cpu/mshyperv.c         |   97 ++++++++++++++++++++-------------
 arch/x86/kernel/irq.c                  |    6 ++
 arch/x86/xen/spinlock.c                |    2 
 arch/xtensa/kernel/irq.c               |   20 +-----
 drivers/hv/vmbus_drv.c                 |   39 +------------
 drivers/pci/host/pcie-designware.c     |    4 -
 drivers/s390/cio/cio.c                 |    5 -
 drivers/xen/events/events_2l.c         |   15 +----
 drivers/xen/events/events_base.c       |   27 ++-------
 drivers/xen/events/events_fifo.c       |    8 --
 include/linux/irq.h                    |    8 ++
 include/linux/kernel_stat.h            |   12 ++--
 kernel/irq/chip.c                      |   15 +++++
 kernel/irq/irqdesc.c                   |   16 +++++
 kernel/irq/manage.c                    |    6 +-
 36 files changed, 204 insertions(+), 274 deletions(-)