• Home
  • Raw
  • Download

Lines Matching refs:cpu

226 	int cpu = smp_processor_id();  in __profile_flip_buffers()  local
228 per_cpu(cpu_profile_flip, cpu) = !per_cpu(cpu_profile_flip, cpu); in __profile_flip_buffers()
233 int i, j, cpu; in profile_flip_buffers() local
239 for_each_online_cpu(cpu) { in profile_flip_buffers()
240 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; in profile_flip_buffers()
256 int i, cpu; in profile_discard_flip_buffers() local
262 for_each_online_cpu(cpu) { in profile_discard_flip_buffers()
263 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; in profile_discard_flip_buffers()
272 int i, j, cpu; in do_profile_hits() local
278 cpu = get_cpu(); in do_profile_hits()
279 hits = per_cpu(cpu_profile_hits, cpu)[per_cpu(cpu_profile_flip, cpu)]; in do_profile_hits()
318 static int profile_dead_cpu(unsigned int cpu) in profile_dead_cpu() argument
324 cpumask_clear_cpu(cpu, prof_cpu_mask); in profile_dead_cpu()
327 if (per_cpu(cpu_profile_hits, cpu)[i]) { in profile_dead_cpu()
328 page = virt_to_page(per_cpu(cpu_profile_hits, cpu)[i]); in profile_dead_cpu()
329 per_cpu(cpu_profile_hits, cpu)[i] = NULL; in profile_dead_cpu()
336 static int profile_prepare_cpu(unsigned int cpu) in profile_prepare_cpu() argument
338 int i, node = cpu_to_mem(cpu); in profile_prepare_cpu()
341 per_cpu(cpu_profile_flip, cpu) = 0; in profile_prepare_cpu()
344 if (per_cpu(cpu_profile_hits, cpu)[i]) in profile_prepare_cpu()
349 profile_dead_cpu(cpu); in profile_prepare_cpu()
352 per_cpu(cpu_profile_hits, cpu)[i] = page_address(page); in profile_prepare_cpu()
358 static int profile_online_cpu(unsigned int cpu) in profile_online_cpu() argument
361 cpumask_set_cpu(cpu, prof_cpu_mask); in profile_online_cpu()