Home
last modified time | relevance | path

Searched refs:num_cpus (Results 1 – 1 of 1) sorted by relevance

/busybox-1.35.0/procps/
Dtop.c192 unsigned num_cpus; member
213 #define num_cpus (G.num_cpus ) macro
321 if (!num_cpus) { in get_jiffy_counts()
326 cpu_jif = xrealloc_vector(cpu_jif, 1, num_cpus); in get_jiffy_counts()
327 if (read_cpu_jiffy(fp, &cpu_jif[num_cpus]) <= 4) in get_jiffy_counts()
329 num_cpus++; in get_jiffy_counts()
331 if (num_cpus == 0) /* /proc/stat with only "cpu ..." line?! */ in get_jiffy_counts()
334 cpu_prev_jif = xzalloc(sizeof(cpu_prev_jif[0]) * num_cpus); in get_jiffy_counts()
348 for (i = 0; i < num_cpus; i++) in get_jiffy_counts()
471 n_cpu_lines = smp_cpu_info ? num_cpus : 1;
[all …]