Skip to content

cpuhotplug: Convert all priority notifiers to the state machine

Anna-Maria Gleixner kvm kvmarm linux-acpi linux-arm-kernel linux-leds linux-metag linux-mips linux-s390 linux-samsung-soc linux-sh linux-snps-arc linux-tegra linuxppc-dev lkml xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest67 patches 27 repliesIn review
  2. v166 patches 35 repliesSuperseded

Changes in v2 from the cover letter

- Addressed the review comments from Ingo, Paul and Pavel
- Picked up acked-bys
- Picked up the massaged changelogs from Ingo
- Fixed the fallout from 0-day testing

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/67cpuhotplug: Handle early registration gracefullykernel/cpu.c+7 -00 replies
2/67x86/vdso: Convert to hotplug state machinearch/x86/entry/vdso/vma.c include/linux/cpuhotplug.h+5 -160 replies
3/67irqchip/gic: Convert to hotplug state machinedrivers/irqchip/irq-gic.c include/linux/cpuhotplug.h+7 -170 replies
4/67irqchip/gicv3: Convert to hotplug state machinedrivers/irqchip/irq-gic-v3.c include/linux/cpuhotplug.h+8 -150 replies
5/67irqchip/hip04: Convert to hotplug state machinedrivers/irqchip/irq-hip04.c include/linux/cpuhotplug.h+6 -200 replies
6/67irqchip/armada-370-xp: Convert to hotplug state machinedrivers/irqchip/irq-armada-370-xp.c include/linux/cpuhotplug.h+17 -290 replies
7/67irqchip/bcm2836: Convert to hotplug state machinedrivers/irqchip/irq-bcm2836.c include/linux/cpuhotplug.h+14 -210 replies
8/67ARM: mvebu: Convert to hotplug state machinearch/arm/mach-mvebu/coherency.c include/linux/cpuhotplug.h+7 -130 replies
9/67perf/core: Convert to hotplug state machineinclude/linux/cpuhotplug.h include/linux/perf_event.h kernel/cpu.c +1 more+32 -460 replies
10/67perf/x86: Convert the core to the hotplug state machinearch/x86/events/amd/core.c arch/x86/events/core.c arch/x86/events/intel/core.c +1 more+74 -420 replies
11/67perf/x86/intel/uncore: Convert to hotplug state machinearch/x86/events/intel/uncore.c include/linux/cpuhotplug.h+48 -880 replies
12/67perf/x86/amd/uncore: Convert to hotplug state machinearch/x86/events/amd/uncore.c include/linux/cpuhotplug.h+35 -900 replies
13/67perf/x86/amd/ibs: Convert to hotplug state machinearch/x86/events/amd/ibs.c include/linux/cpuhotplug.h+29 -360 replies
14/67perf/x86/intel/rapl: Convert to hotplug state machinearch/x86/events/intel/rapl.c include/linux/cpuhotplug.h+27 -590 replies
15/67perf/x86/intel/cqm: Convert Intel CQM to hotplug state machinearch/x86/events/intel/cqm.c include/linux/cpuhotplug.h+20 -310 replies
16/67perf/x86/intel/cstate: Convert Intel CSTATE to hotplug state machinearch/x86/events/intel/cstate.c include/linux/cpuhotplug.h+17 -360 replies
17/67blackfin/perf: Convert hotplug notifier to state machinearch/blackfin/kernel/perf_event.c include/linux/cpuhotplug.h+6 -210 replies
18/67powerpc/perf: Convert book3s notifier to state machine callbacksarch/powerpc/perf/core-book3s.c include/linux/cpuhotplug.h+8 -230 replies
19/67s390/perf: Convert the hotplug notifier to state machine callbacks (Counter)arch/s390/kernel/perf_cpum_cf.c include/linux/cpuhotplug.h+20 -270 replies
20/67s390/perf: Convert the hotplug notifier to state machine callbacks (Sampling)arch/s390/kernel/perf_cpum_sf.c include/linux/cpuhotplug.h+20 -260 replies
21/67sh/perf: Convert the hotplug notifiers to state machine callbacksarch/sh/kernel/perf_event.c include/linux/cpuhotplug.h+5 -190 replies
22/67bus/arm-cci: Convert to hotplug statemachinedrivers/bus/arm-cci.c include/linux/cpuhotplug.h+24 -301 reply
23/67bus/arm-ccn: Convert to hotplug statemachinedrivers/bus/arm-ccn.c include/linux/cpuhotplug.h+29 -291 reply
24/67xtensa/perf: Convert the hotplug notifier to state machine callbacksarch/xtensa/kernel/perf_event.c include/linux/cpuhotplug.h+10 -170 replies
25/67perf/x86/amd/power: Change hotplug notifier to a symmetric structurearch/x86/events/amd/power.c+2 -20 replies
26/67perf/x86/amd/power: Convert the hotplug notifier to state machinearch/x86/events/amd/power.c include/linux/cpuhotplug.h+12 -470 replies
27/67perf/core: Remove perf CPU notifier codeinclude/linux/cpu.h include/linux/perf_event.h+0 -370 replies
28/67workqueue: Convert to state machine callbacksinclude/linux/cpu.h include/linux/cpuhotplug.h include/linux/workqueue.h +2 more+61 -740 replies
29/67x86/hpet: Convert to hotplug state machinearch/x86/kernel/hpet.c include/linux/cpuhotplug.h+36 -350 replies
30/67powerpc/numa: Convert to hotplug state machinearch/powerpc/mm/numa.c include/linux/cpuhotplug.h+17 -307 replies
31/67KVM/x86: Remove superfluous SMP function callarch/x86/kvm/x86.c+2 -41 reply
32/67x86/kvm/kvmclock: Convert to hotplug state machinearch/x86/kvm/x86.c include/linux/cpuhotplug.h+9 -250 replies
33/67x86/apb_timer: Convert to hotplug state machinearch/x86/kernel/apb_timer.c include/linux/cpuhotplug.h+11 -190 replies
34/67arm: Convert VFP hotplug notifiers to state machinearch/arm/vfp/vfpmodule.c include/linux/cpuhotplug.h+18 -110 replies
35/67arm/perf: Convert to hotplug state machinedrivers/perf/arm_pmu.c include/linux/cpuhotplug.h include/linux/perf/arm_pmu.h+16 -229 replies
36/67virt: Convert kvm hotplug to state machineinclude/linux/cpuhotplug.h virt/kvm/kvm_main.c+9 -240 replies
37/67ACPI/processor: Avoid STARTING/DYING actions in a more logical waydrivers/acpi/processor_driver.c+6 -50 replies
38/67clocksource/arm_arch_timer: Convert to hotplug state machinedrivers/clocksource/arm_arch_timer.c include/linux/cpuhotplug.h+27 -280 replies
39/67clocksource/dummy_timer: Convert to hotplug state machinedrivers/clocksource/dummy_timer.c include/linux/cpuhotplug.h+7 -300 replies
40/67clocksource/metag: Convert to hotplug state machinedrivers/clocksource/metag_generic.c include/linux/cpuhotplug.h+7 -270 replies
41/67clocksource/qcom-timer: Convert to hotplug state machinedrivers/clocksource/qcom-timer.c include/linux/cpuhotplug.h+12 -300 replies
42/67clocksource/mips-gic: Convert to hotplug state machinedrivers/clocksource/mips-gic-timer.c include/linux/cpuhotplug.h+14 -250 replies
43/67leds/trigger/cpu: Convert to hotplug state machinedrivers/leds/trigger/ledtrig-cpu.c include/linux/cpuhotplug.h+16 -179 replies
44/67arm/kvm/vgic: Convert to hotplug state machineinclude/linux/cpuhotplug.h virt/kvm/arm/vgic.c+9 -310 replies
45/67arm/kvm/arch_timer: Convert to hotplug state machineinclude/linux/cpuhotplug.h virt/kvm/arm/arch_timer.c+12 -240 replies
46/67metag/perf: Convert to hotplug state machinearch/metag/kernel/perf/perf_event.c include/linux/cpuhotplug.h+8 -190 replies
47/67arm/l2c: Convert to hotplug state machinearch/arm/mm/cache-l2x0.c include/linux/cpuhotplug.h+14 -140 replies
48/67arm/twd: Convert to hotplug state machinearch/arm/kernel/smp_twd.c include/linux/cpuhotplug.h+12 -200 replies
49/67arm/xen: Convert to hotplug state machinearch/arm/xen/enlighten.c include/linux/cpuhotplug.h+12 -302 replies
50/67MIPS/Loongson-3: Convert oprofile to hotplug state machinearch/mips/oprofile/op_model_loongson3.c include/linux/cpuhotplug.h+15 -210 replies
51/67hwtracing/coresight-etm3x: Convert to hotplug state machinedrivers/hwtracing/coresight/coresight-etm3x.c include/linux/cpuhotplug.h+50 -410 replies
52/67hwtracing/coresight-etm4x: Convert to hotplug state machinedrivers/hwtracing/coresight/coresight-etm4x.c include/linux/cpuhotplug.h+49 -370 replies
53/67arm64/armv8 deprecated: Convert to hotplug state machinearch/arm64/kernel/armv8_deprecated.c include/linux/cpuhotplug.h+6 -170 replies
54/67x86/tboot: Convert to hotplug state machinearch/x86/kernel/tboot.c include/linux/cpuhotplug.h+9 -170 replies
55/67hrtimer: Convert to hotplug state machineinclude/linux/cpuhotplug.h include/linux/hrtimer.h kernel/cpu.c +1 more+18 -350 replies
56/67timers/core: Convert to hotplug state machineinclude/linux/cpuhotplug.h include/linux/timer.h kernel/cpu.c +1 more+14 -232 replies
57/67profile: Convert to hotplug state machineinclude/linux/cpuhotplug.h kernel/profile.c+66 -1160 replies
58/67x86/x2apic: Convert to CPU hotplug state machinearch/x86/kernel/apic/x2apic_cluster.c include/linux/cpuhotplug.h+31 -500 replies
59/67smp: Convert core to hotplug state machineinclude/linux/cpuhotplug.h include/linux/smp.h kernel/cpu.c +1 more+48 -470 replies
60/67KVM/arm/arm64/vgic-new: Convert to hotplug state machineinclude/linux/cpuhotplug.h virt/kvm/arm/vgic/vgic-init.c+10 -221 reply
61/67rcu: Convert rcutree to hotplug state machineinclude/linux/cpuhotplug.h include/linux/rcutiny.h include/linux/rcutree.h +2 more+83 -530 replies
62/67clocksource: arm_global_timer: Convert to hotplug state machine.drivers/clocksource/arm_global_timer.c include/linux/cpuhotplug.h+11 -290 replies
63/67clocksource/exynos_mct: Convert to hotplug state machinedrivers/clocksource/exynos_mct.c include/linux/cpuhotplug.h+13 -340 replies
64/67clocksource/armada-370-xp: Convert to hotplug state machinedrivers/clocksource/time-armada-370-xp.c include/linux/cpuhotplug.h+12 -300 replies
65/67clocksource/atlas7: Convert to hotplug state machinedrivers/clocksource/timer-atlas7.c include/linux/cpuhotplug.h+10 -320 replies
66/67ARC/time: Convert to hotplug state machinearch/arc/kernel/time.c include/linux/cpuhotplug.h+19 -300 replies
67/67cpuhotplug: Remove CPU_STARTING and CPU_DYING notifierarch/sparc/kernel/smp_32.c include/linux/cpu.h include/linux/cpuhotplug.h +2 more+2 -560 replies

Reviews trailers per patch

51 of 67 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSebastian Andrzej SiewiorPaolo BonziniMathieu PoirierAndy LutomirskiRalf BaechleTejun HeoStefano StabelliniJason CooperJacek AnaszewskiMarc ZyngierPunit AgrawalPawel MollMark RutlandJon Hunter
SeriesA-b
1/67
2/67A-b
3/67R-b
4/67R-b
5/67R-b
6/67
7/67
8/67
9/67R-b
10/67R-b
11/67R-b
12/67R-b
13/67R-b
14/67R-b
15/67R-b
16/67
17/67R-b
18/67R-b
19/67R-b
20/67
21/67R-b
22/67A-b
23/67A-b
24/67
25/67
26/67
27/67R-b
28/67R-b A-b
29/67
30/67
31/67A-b
32/67A-b
33/67
34/67R-b
35/67R-b R-b R-b A-b A-b
36/67R-b A-b
37/67R-b
38/67R-b
39/67R-b
40/67R-b
41/67R-b
42/67R-b
43/67R-b A-b
44/67R-b
45/67R-b
46/67R-b
47/67R-b
48/67R-b
49/67R-b R-b R-b
50/67R-b A-b
51/67R-b A-b
52/67A-b
53/67
54/67R-b
55/67R-b
56/67R-b T-b
57/67
58/67
59/67R-b
60/67A-b
61/67R-b
62/67R-b
63/67R-b
64/67R-b
65/67R-b
66/67
67/67R-b

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

Read the v2 thread

Cover letter [patch V2 00/67] cpuhotplug: Convert all priority notifiers to the state machine

This series is the next step towards a state machine based hotplug machinery.

It converts all notifiers which have a priority assigned and gets rid of the CPU_STARTING/DYING notifiers.

Changes vs. V1:
- Addressed the review comments from Ingo, Paul and Pavel
- Picked up acked-bys
- Picked up the massaged changelogs from Ingo
- Fixed the fallout from 0-day testing

Note this applies to tip/smp/hotplug. It contains the branches which are preliminaries for that series.

Thanks,

Anna-Maria

---
 arch/arc/kernel/time.c                        |   48 ++----
 arch/arm/kernel/smp_twd.c                     |   31 +---
 arch/arm/mach-mvebu/coherency.c               |   19 --
 arch/arm/mm/cache-l2x0.c                      |   27 +--
 arch/arm/vfp/vfpmodule.c                      |   28 ++--
 arch/arm/xen/enlighten.c                      |   41 +----
 arch/arm64/kernel/armv8_deprecated.c          |   22 ---
 arch/blackfin/kernel/perf_event.c             |   26 ---
 arch/metag/kernel/perf/perf_event.c           |   26 +--
 arch/mips/oprofile/op_model_loongson3.c       |   35 ++---
 arch/powerpc/mm/numa.c                        |   46 ++----
 arch/powerpc/perf/core-book3s.c               |   30 +---
 arch/s390/kernel/perf_cpum_cf.c               |   46 ++----
 arch/s390/kernel/perf_cpum_sf.c               |   45 ++----
 arch/sh/kernel/perf_event.c                   |   23 ---
 arch/sparc/kernel/smp_32.c                    |    2 
 arch/x86/entry/vdso/vma.c                     |   20 --
 arch/x86/events/amd/core.c                    |    6 
 arch/x86/events/amd/ibs.c                     |   64 ++++-----
 arch/x86/events/amd/power.c                   |   60 +-------
 arch/x86/events/amd/uncore.c                  |  122 ++++-------------
 arch/x86/events/core.c                        |  103 +++++++++-----
 arch/x86/events/intel/core.c                  |    4 
 arch/x86/events/intel/cqm.c                   |   49 ++-----
 arch/x86/events/intel/cstate.c                |   51 ++-----
 arch/x86/events/intel/rapl.c                  |   84 +++---------
 arch/x86/events/intel/uncore.c                |  133 ++++++-------------
 arch/x86/kernel/apb_timer.c                   |   29 +---
 arch/x86/kernel/apic/x2apic_cluster.c         |   80 ++++-------
 arch/x86/kernel/hpet.c                        |   69 ++++-----
 arch/x86/kernel/tboot.c                       |   25 +--
 arch/x86/kvm/x86.c                            |   35 +----
 arch/xtensa/kernel/perf_event.c               |   26 +--
 drivers/acpi/processor_driver.c               |   11 -
 drivers/bus/arm-cci.c                         |   53 +++----
 drivers/bus/arm-ccn.c                         |   57 ++++----
 drivers/clocksource/arm_arch_timer.c          |   54 +++----
 drivers/clocksource/arm_global_timer.c        |   39 +----
 drivers/clocksource/dummy_timer.c             |   36 -----
 drivers/clocksource/exynos_mct.c              |   46 +-----
 drivers/clocksource/metag_generic.c           |   33 ----
 drivers/clocksource/mips-gic-timer.c          |   38 +----
 drivers/clocksource/qcom-timer.c              |   41 +----
 drivers/clocksource/time-armada-370-xp.c      |   41 +----
 drivers/clocksource/timer-atlas7.c            |   41 +----
 drivers/hwtracing/coresight/coresight-etm3x.c |   90 +++++++-----
 drivers/hwtracing/coresight/coresight-etm4x.c |   87 +++++++-----
 drivers/irqchip/irq-armada-370-xp.c           |   44 ++----
 drivers/irqchip/irq-bcm2836.c                 |   34 +---
 drivers/irqchip/irq-gic-v3.c                  |   22 +--
 drivers/irqchip/irq-gic.c                     |   23 ---
 drivers/irqchip/irq-hip04.c                   |   25 ---
 drivers/leds/trigger/ledtrig-cpu.c            |   32 ++--
 drivers/perf/arm_pmu.c                        |   36 ++---
 include/linux/cpu.h                           |   23 ---
 include/linux/cpuhotplug.h                    |   78 +++++++++++
 include/linux/hrtimer.h                       |    7 +
 include/linux/perf/arm_pmu.h                  |    1 
 include/linux/perf_event.h                    |   44 +-----
 include/linux/rcutiny.h                       |    7 +
 include/linux/rcutree.h                       |    7 +
 include/linux/smp.h                           |    5 
 include/linux/timer.h                         |    6 
 include/linux/workqueue.h                     |    6 
 kernel/cpu.c                                  |   89 ++++++++----
 kernel/events/core.c                          |   56 +-------
 kernel/profile.c                              |  181 +++++++++-----------------
 kernel/rcu/tree.c                             |  105 +++++++--------
 kernel/smp.c                                  |   79 ++++-------
 kernel/time/hrtimer.c                         |   40 -----
 kernel/time/timer.c                           |   25 ---
 kernel/workqueue.c                            |  108 ++++++---------
 tools/testing/radix-tree/linux/cpu.h          |   13 -
 virt/kvm/arm/arch_timer.c                     |   35 +----
 virt/kvm/arm/vgic.c                           |   39 +----
 virt/kvm/arm/vgic/vgic-init.c                 |   31 +---
 virt/kvm/kvm_main.c                           |   32 +---
 77 files changed, 1287 insertions(+), 2068 deletions(-)