Searched refs:sum (Results 1 – 4 of 4) sorted by relevance
61 int sum; in srcu_readers_active_idx() local63 sum = 0; in srcu_readers_active_idx()65 sum += per_cpu_ptr(sp->per_cpu_ref, cpu)->c[idx]; in srcu_readers_active_idx()66 return sum; in srcu_readers_active_idx()91 int sum; in cleanup_srcu_struct() local93 sum = srcu_readers_active(sp); in cleanup_srcu_struct()94 WARN_ON(sum); /* Leakage unless caller handles error. */ in cleanup_srcu_struct()95 if (sum != 0) in cleanup_srcu_struct()
807 int sum = 0; in rcu_try_flip_waitzero() local813 sum += RCU_DATA_CPU(cpu)->rcu_flipctr[lastidx]; in rcu_try_flip_waitzero()814 if (sum != 0) { in rcu_try_flip_waitzero()
2716 unsigned long i, sum = 0; in nr_running() local2719 sum += cpu_rq(i)->nr_running; in nr_running()2721 return sum; in nr_running()2726 unsigned long i, sum = 0; in nr_uninterruptible() local2729 sum += cpu_rq(i)->nr_uninterruptible; in nr_uninterruptible()2735 if (unlikely((long)sum < 0)) in nr_uninterruptible()2736 sum = 0; in nr_uninterruptible()2738 return sum; in nr_uninterruptible()2744 unsigned long long sum = 0; in nr_context_switches() local2747 sum += cpu_rq(i)->nr_switches; in nr_context_switches()[all …]
279 struct task_cputime sum; in thread_group_cputimer() local291 thread_group_cputime(tsk, &sum); in thread_group_cputimer()292 update_gt_cputime(&cputimer->cputime, &sum); in thread_group_cputimer()