Lines Matching refs:cpu
339 int cpu; in rcu_dump_cpu_stacks() local
345 for_each_leaf_node_possible_cpu(rnp, cpu) in rcu_dump_cpu_stacks()
346 if (rnp->qsmask & leaf_node_cpu_bit(rnp, cpu)) { in rcu_dump_cpu_stacks()
347 if (cpu_is_offline(cpu)) in rcu_dump_cpu_stacks()
348 pr_err("Offline CPU %d blocking current GP.\n", cpu); in rcu_dump_cpu_stacks()
349 else if (!trigger_single_cpu_backtrace(cpu)) in rcu_dump_cpu_stacks()
350 dump_cpu_task(cpu); in rcu_dump_cpu_stacks()
358 static void print_cpu_stall_fast_no_hz(char *cp, int cpu) in print_cpu_stall_fast_no_hz() argument
360 struct rcu_data *rdp = per_cpu_ptr(&rcu_data, cpu); in print_cpu_stall_fast_no_hz()
369 static void print_cpu_stall_fast_no_hz(char *cp, int cpu) in print_cpu_stall_fast_no_hz() argument
419 static void print_cpu_stall_info(int cpu) in print_cpu_stall_info() argument
424 struct rcu_data *rdp = per_cpu_ptr(&rcu_data, cpu); in print_cpu_stall_info()
441 print_cpu_stall_fast_no_hz(fast_no_hz, cpu); in print_cpu_stall_info()
446 cpu, in print_cpu_stall_info()
447 "O."[!!cpu_online(cpu)], in print_cpu_stall_info()
456 rdp->softirq_snap, kstat_softirqs_cpu(RCU_SOFTIRQ, cpu), in print_cpu_stall_info()
465 int cpu; in rcu_check_gp_kthread_starvation() local
470 cpu = gpk ? task_cpu(gpk) : -1; in rcu_check_gp_kthread_starvation()
477 gpk ? data_race(READ_ONCE(gpk->__state)) : ~0, cpu); in rcu_check_gp_kthread_starvation()
482 if (cpu >= 0) { in rcu_check_gp_kthread_starvation()
483 if (cpu_is_offline(cpu)) { in rcu_check_gp_kthread_starvation()
484 pr_err("RCU GP kthread last ran on offline CPU %d.\n", cpu); in rcu_check_gp_kthread_starvation()
487 if (!trigger_single_cpu_backtrace(cpu)) in rcu_check_gp_kthread_starvation()
488 dump_cpu_task(cpu); in rcu_check_gp_kthread_starvation()
502 int cpu; in rcu_check_gp_kthread_expired_fqs_timer() local
514 cpu = task_cpu(gpk); in rcu_check_gp_kthread_expired_fqs_timer()
522 cpu, kstat_softirqs_cpu(TIMER_SOFTIRQ, cpu)); in rcu_check_gp_kthread_expired_fqs_timer()
528 int cpu; in print_other_cpu_stall() local
553 for_each_leaf_node_possible_cpu(rnp, cpu) in print_other_cpu_stall()
554 if (rnp->qsmask & leaf_node_cpu_bit(rnp, cpu)) { in print_other_cpu_stall()
555 print_cpu_stall_info(cpu); in print_other_cpu_stall()
563 for_each_possible_cpu(cpu) in print_other_cpu_stall()
564 totqlen += rcu_get_n_cbs_cpu(cpu); in print_other_cpu_stall()
601 int cpu; in print_cpu_stall() local
624 for_each_possible_cpu(cpu) in print_cpu_stall()
625 totqlen += rcu_get_n_cbs_cpu(cpu); in print_cpu_stall()
780 int cpu; in rcu_check_boost_fail() local
804 for_each_leaf_node_possible_cpu(rnp, cpu) { in rcu_check_boost_fail()
805 if (rnp->qsmask & (1UL << (cpu - rnp->grplo))) { in rcu_check_boost_fail()
807 *cpup = cpu; in rcu_check_boost_fail()
824 int cpu; in show_rcu_gp_kthreads() local
865 for_each_leaf_node_possible_cpu(rnp, cpu) { in show_rcu_gp_kthreads()
866 rdp = per_cpu_ptr(&rcu_data, cpu); in show_rcu_gp_kthreads()
872 cpu, (long)data_race(READ_ONCE(rdp->gp_seq_needed))); in show_rcu_gp_kthreads()
875 for_each_possible_cpu(cpu) { in show_rcu_gp_kthreads()
876 rdp = per_cpu_ptr(&rcu_data, cpu); in show_rcu_gp_kthreads()
952 int cpu; in rcu_fwd_progress_check() local
969 for_each_possible_cpu(cpu) { in rcu_fwd_progress_check()
970 cbs = rcu_get_n_cbs_cpu(cpu); in rcu_fwd_progress_check()
975 pr_cont(" %d: %lu", cpu, cbs); in rcu_fwd_progress_check()
979 max_cpu = cpu; in rcu_fwd_progress_check()