Skip to content

sched: re-add removed arch_update_cpu_topology call

Heiko Carstens lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched: let arch_update_cpu_topology indicate if topology changedarch/s390/kernel/topology.c include/linux/topology.h kernel/sched.c+11 -40 replies
2/2sched: add missing arch_update_cpu_topology() callkernel/sched.c+6 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] sched: re-add removed arch_update_cpu_topology call

arch_reinit_sched_domains used to call arch_update_cpu_topology via arch_init_sched_domains. This call got lost with e761b7725234276a802322549cee5255305a0930 ("cpu hotplug, sched: Introduce cpu_active_map and redo sched domain managment (take 2)".

So we might end up with outdated and missing cpus in the cpu core maps (architecture used to call arch_reinit_sched_domains if cpu topology changed).

This patch set changes arch_update_cpu_topology so that it can indicate if the cpu topology changed and adds a call to arch_update_cpu_topology in partition_sched_domains which gets called whenever scheduling domains get updated. Which is what is supposed to happen when cpu topology changes.