1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 09:32:12 +00:00
Waiman Long da274853fe cpu: Remove obsolete comment from takedown_cpu()
takedown_cpu() has a comment about "all preempt/rcu users must observe
!cpu_active()" which is kind of meaningless in this function. This
comment was originally introduced by commit 6acce3ef8452 ("sched: Remove
get_online_cpus() usage") when _cpu_down() was setting cpu_active_mask
and synchronize_rcu()/synchronize_sched() were added after that.

Later commit 40190a78f85f ("sched/hotplug: Convert cpu_[in]active
notifiers to state machine") added a new CPUHP_AP_ACTIVE hotplug
state to set/clear cpu_active_mask. The following commit b2454caa8977
("sched/hotplug: Move sync_rcu to be with set_cpu_active(false)")
move the synchronize_*() calls to sched_cpu_deactivate() associated
with the new hotplug state, but left the comment behind.

Remove this comment as it is no longer relevant in takedown_cpu().

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250729191232.664931-1-longman@redhat.com
2025-08-06 22:48:12 +02:00
..
2025-07-29 12:15:39 -07:00
2025-07-19 10:00:47 -07:00
2025-07-11 16:02:01 +02:00
2025-07-29 13:26:05 -07:00
2025-07-29 18:11:32 -07:00
2025-07-29 12:15:39 -07:00
2025-03-27 19:22:24 -07:00
2025-07-29 17:42:52 -07:00
2025-07-28 16:43:54 -07:00
2025-03-30 15:44:36 -07:00
2025-07-29 17:42:52 -07:00
2025-06-19 14:28:24 +02:00
2025-03-24 09:52:37 -07:00