Lines Matching full:cpu_id
314 static int membarrier_private_expedited(int flags, int cpu_id) in membarrier_private_expedited() argument
356 if (cpu_id < 0 && !zalloc_cpumask_var(&tmpmask, GFP_KERNEL)) in membarrier_private_expedited()
362 if (cpu_id >= 0) { in membarrier_private_expedited()
365 if (cpu_id >= nr_cpu_ids || !cpu_online(cpu_id)) in membarrier_private_expedited()
368 p = rcu_dereference(cpu_rq(cpu_id)->curr); in membarrier_private_expedited()
388 if (cpu_id >= 0) { in membarrier_private_expedited()
390 * smp_call_function_single() will call ipi_func() if cpu_id in membarrier_private_expedited()
393 smp_call_function_single(cpu_id, ipi_func, NULL, 1); in membarrier_private_expedited()
422 if (cpu_id < 0) in membarrier_private_expedited()
594 * case it can be MEMBARRIER_CMD_FLAG_CPU, indicating that @cpu_id
597 * @cpu_id: if @flags == MEMBARRIER_CMD_FLAG_CPU, indicates the cpu on which
625 SYSCALL_DEFINE3(membarrier, int, cmd, unsigned int, flags, int, cpu_id) in SYSCALL_DEFINE3() argument
638 cpu_id = -1; in SYSCALL_DEFINE3()
661 return membarrier_private_expedited(0, cpu_id); in SYSCALL_DEFINE3()
665 return membarrier_private_expedited(MEMBARRIER_FLAG_SYNC_CORE, cpu_id); in SYSCALL_DEFINE3()
669 return membarrier_private_expedited(MEMBARRIER_FLAG_RSEQ, cpu_id); in SYSCALL_DEFINE3()