- percpu_cntr = &(stats->ls_percpu[i])->lp_cntr[idx];
-
- do {
- centry = cfs_atomic_read(&percpu_cntr-> \
- lc_cntl.la_entry);
- t.lc_count = percpu_cntr->lc_count;
- t.lc_sum = percpu_cntr->lc_sum;
- t.lc_min = percpu_cntr->lc_min;
- t.lc_max = percpu_cntr->lc_max;
- t.lc_sumsquare = percpu_cntr->lc_sumsquare;
- } while (centry != cfs_atomic_read(&percpu_cntr->lc_cntl. \
- la_entry) &&
- centry != cfs_atomic_read(&percpu_cntr->lc_cntl. \
- la_exit));
- cnt->lc_count += t.lc_count;
- cnt->lc_sum += t.lc_sum;
- if (t.lc_min < cnt->lc_min)
- cnt->lc_min = t.lc_min;
- if (t.lc_max > cnt->lc_max)
- cnt->lc_max = t.lc_max;
- cnt->lc_sumsquare += t.lc_sumsquare;
- }
+
+ ptr = &(stats->ls_percpu[i])->lp_cntr[idx];
+ cnt->lc_count += ptr->lc_count;
+ cnt->lc_sum += ptr->lc_sum;
+ if (ptr->lc_min < cnt->lc_min)
+ cnt->lc_min = ptr->lc_min;
+ if (ptr->lc_max > cnt->lc_max)
+ cnt->lc_max = ptr->lc_max;
+ cnt->lc_sumsquare += ptr->lc_sumsquare;
+ }