void rcu_note_context_switch(int cpu) { trace_rcu_utilization("Start context switch"); rcu_sched_qs(cpu); rcu_preempt_note_context_switch(cpu); trace_rcu_utilization("End context switch"); }
void rcu_sched_qs(int cpu) { struct rcu_data *rdp; rdp = &per_cpu(rcu_sched_data, cpu); rdp->passed_quiesc_completed = rdp->completed; barrier(); rdp->passed_quiesc = 1; rcu_preempt_note_context_switch(cpu); }
void rcu_note_context_switch(int cpu) { rcu_sched_qs(cpu); rcu_preempt_note_context_switch(cpu); }