Lines Matching refs:MAX_COLLECTOR_HISTORY
352 if (MAX_COLLECTOR_HISTORY <= (index = cpu->h_first + cpu->h_count)) in update_cpu_counters()
353 index -= MAX_COLLECTOR_HISTORY; in update_cpu_counters()
355 if (MAX_COLLECTOR_HISTORY > cpu->h_count) in update_cpu_counters()
357 else if (MAX_COLLECTOR_HISTORY == ++cpu->h_first) in update_cpu_counters()
618 if (MAX_COLLECTOR_HISTORY <= (index = pcpus->cpu[idx].h_first + pcpus->cpu[idx].h_count - 1)) in update_cpustats()
619 index -= MAX_COLLECTOR_HISTORY; in update_cpustats()
816 if (MAX_COLLECTOR_HISTORY <= (idx_curr = (cpu->h_first + cpu->h_count - 1))) in get_cpustat()
817 idx_curr -= MAX_COLLECTOR_HISTORY; in get_cpustat()
835 idx_base += MAX_COLLECTOR_HISTORY; in get_cpustat()
838 if (MAX_COLLECTOR_HISTORY == ++idx_base) in get_cpustat()
839 idx_base -= MAX_COLLECTOR_HISTORY; in get_cpustat()
907 if (MAX_COLLECTOR_HISTORY <= (index = cpu->h_first + cpu->h_count - 1)) in get_cpus()
908 index -= MAX_COLLECTOR_HISTORY; in get_cpus()