Skip to contentSkip to conversation

idle: Remove stale RCU comment

PATCH Applied Christian Loehle 3 participants 3 messages Jun 3, 2024 – Jun 14, 2024 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 idle: Remove stale RCU comment

The call of rcu_idle_enter() from within cpuidle_idle_call() was removed in commit 1098582a0f6c ("sched,idle,rcu: Push rcu_idle deeper into the idle path") which makes the comment out of place.

---
 kernel/sched/idle.c | 6 ------
 1 file changed, 6 deletions(-)
kernel/sched/idle.c +0 -6
index 6135fbe83d68..3cc1a592d9a1 100644
@@ -179,12 +179,6 @@ static void cpuidle_idle_call(void)
 		return;
 	}
 
-	/*
-	 * The RCU framework needs to be told that we are entering an idle
-	 * section, so no more rcu read side critical sections and one more
-	 * step to the grace period
-	 */
-
 	if (cpuidle_not_available(drv, dev)) {
 		tick_nohz_idle_stop_tick();
 
Signature · 1 line
2.34.1
#1 lore raw
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     764d5fcc2a58d789629f6800451975fc93f25822
Gitweb:        https://git.kernel.org/tip/764d5fcc2a58d789629f6800451975fc93f25822
Author:        Christian Loehle <[email protected]>
AuthorDate:    Mon, 03 Jun 2024 16:30:39 +01:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Wed, 05 Jun 2024 15:52:35 +02:00

idle: Remove stale RCU comment

The call of rcu_idle_enter() from within cpuidle_idle_call() was removed in commit 1098582a0f6c ("sched,idle,rcu: Push rcu_idle deeper into the idle path") which makes the comment out of place.

---
 kernel/sched/idle.c | 6 ------
 1 file changed, 6 deletions(-)
kernel/sched/idle.c +0 -6
index 770e698..6e78d07 100644
@@ -179,12 +179,6 @@ static void cpuidle_idle_call(void)
 		return;
 	}
 
-	/*
-	 * The RCU framework needs to be told that we are entering an idle
-	 * section, so no more RCU read side critical sections and one more
-	 * step to the grace period
-	 */
-
 	if (cpuidle_not_available(drv, dev)) {
 		tick_nohz_idle_stop_tick();
 
Acked-by on v1 1/1
#2 lore raw
In reply to Christian Loehle
Quoted 5 lines · Christian Loehle

The call of rcu_idle_enter() from within cpuidle_idle_call() was removed in commit 1098582a0f6c ("sched,idle,rcu: Push rcu_idle deeper into the idle path") which makes the comment out of place.

Quoted 21 lines
---
  kernel/sched/idle.c | 6 ------
  1 file changed, 6 deletions(-)
kernel/sched/idle.c +0 -6
index 6135fbe83d68..3cc1a592d9a1 100644
@@ -179,12 +179,6 @@ static void cpuidle_idle_call(void)
  		return;
  	}
 
-	/*
-	 * The RCU framework needs to be told that we are entering an idle
-	 * section, so no more rcu read side critical sections and one more
-	 * step to the grace period
-	 */
-
  	if (cpuidle_not_available(drv, dev)) {
  		tick_nohz_idle_stop_tick();