Lines Matching full:cpu_id
314 static int membarrier_private_expedited(int flags, int cpu_id) in membarrier_private_expedited() argument
351 if (cpu_id < 0 && !zalloc_cpumask_var(&tmpmask, GFP_KERNEL)) in membarrier_private_expedited()
357 if (cpu_id >= 0) { in membarrier_private_expedited()
360 if (cpu_id >= nr_cpu_ids || !cpu_online(cpu_id)) in membarrier_private_expedited()
363 p = rcu_dereference(cpu_rq(cpu_id)->curr); in membarrier_private_expedited()
383 if (cpu_id >= 0) { in membarrier_private_expedited()
385 * smp_call_function_single() will call ipi_func() if cpu_id in membarrier_private_expedited()
388 smp_call_function_single(cpu_id, ipi_func, NULL, 1); in membarrier_private_expedited()
417 if (cpu_id < 0) in membarrier_private_expedited()
589 * case it can be MEMBARRIER_CMD_FLAG_CPU, indicating that @cpu_id
592 * @cpu_id: if @flags == MEMBARRIER_CMD_FLAG_CPU, indicates the cpu on which
620 SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) in SYSCALL_DEFINE3() argument
633 cpu_id = -1; in SYSCALL_DEFINE3()
656 return membarrier_private_expedited(0, cpu_id); in SYSCALL_DEFINE3()
660 return membarrier_private_expedited(MEMBARRIER_FLAG_SYNC_CORE, cpu_id); in SYSCALL_DEFINE3()
664 return membarrier_private_expedited(MEMBARRIER_FLAG_RSEQ, cpu_id); in SYSCALL_DEFINE3()