Lines Matching refs:last_disp_cpu
147 int last_disp_cpu; member
252 static int cpu_relative_dispatch_distance(int last_disp_cpu, int cur_disp_cpu) in cpu_relative_dispatch_distance() argument
256 if (last_disp_cpu >= NR_CPUS_H || cur_disp_cpu >= NR_CPUS_H) in cpu_relative_dispatch_distance()
259 last_disp_cpu_assoc = get_pcpu_associativity(last_disp_cpu); in cpu_relative_dispatch_distance()
294 if (disp->last_disp_cpu == -1) { in update_vcpu_disp_stat()
295 disp->last_disp_cpu = disp_cpu; in update_vcpu_disp_stat()
301 if (disp->last_disp_cpu == disp_cpu || in update_vcpu_disp_stat()
302 (cpu_first_thread_sibling(disp->last_disp_cpu) == in update_vcpu_disp_stat()
306 distance = cpu_relative_dispatch_distance(disp->last_disp_cpu, in update_vcpu_disp_stat()
325 disp->last_disp_cpu, in update_vcpu_disp_stat()
355 disp->last_disp_cpu = disp_cpu; in update_vcpu_disp_stat()
533 disp->last_disp_cpu = -1; in vcpudispatch_stats_write()