Lines Matching refs:old_cpu
86 static struct cpu_info old_cpu[10], new_cpu[10]; //1 total, 8 cores, 1 null variable
519 total = (new_cpu[k].total) - (old_cpu[k].total); in print_header()
522 show_percent((new_cpu[k].utime - old_cpu[k].utime), total)); in print_header()
524 show_percent((new_cpu[k].stime - old_cpu[k].stime), total)); in print_header()
526 show_percent(new_cpu[k].ntime - old_cpu[k].ntime, total)); in print_header()
528 show_percent(new_cpu[k].itime - old_cpu[k].itime, total)); in print_header()
530 show_percent((new_cpu[k].iowtime - old_cpu[k].iowtime), total)); in print_header()
532 show_percent(new_cpu[k].irqtime - old_cpu[k].irqtime, total)); in print_header()
534 show_percent(new_cpu[k].sirqtime - old_cpu[k].sirqtime, total)); in print_header()
583 total_delta_time = new_cpu[0].total - old_cpu[0].total; in print_procs()
782 memcpy(old_cpu, new_cpu, sizeof(old_cpu)); in top_main()