]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
doc: Update information about resched_cpu
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 25 Sep 2018 18:25:57 +0000 (11:25 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Nov 2018 16:48:31 +0000 (08:48 -0800)
Since commit fced9c8cfe6b ("rcu: Avoid resched_cpu() when rescheduling
the current CPU"), resched_cpu is not directly called from
sync_sched_exp_handler. Update the documentation about the same.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: <kernel-team@android.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Documentation/RCU/Design/Expedited-Grace-Periods/Expedited-Grace-Periods.html

index e62c7c34a369ee7786de65ad555efa060671ee2e..8e4f873b979ffd9e369cc75cb77846ae23a1bbff 100644 (file)
@@ -160,9 +160,9 @@ was in flight.
 If the CPU is idle, then <tt>sync_sched_exp_handler()</tt> reports
 the quiescent state.
 
-<p>
-Otherwise, the handler invokes <tt>resched_cpu()</tt>, which forces
-a future context switch.
+<p> Otherwise, the handler forces a future context switch by setting the
+NEED_RESCHED flag of the current task's thread flag and the CPU preempt
+counter.
 At the time of the context switch, the CPU reports the quiescent state.
 Should the CPU go offline first, it will report the quiescent state
 at that time.