Lines Matching defs:cpu
41 #define cpu_ran_vm(cpu, mm) \
42 cpumask_set_cpu((cpu), mm_cpumask(mm))
43 #define cpu_maybe_ran_vm(cpu, mm) \
44 cpumask_test_and_set_cpu((cpu), mm_cpumask(mm))
46 #define cpu_ran_vm(cpu, mm) do {} while (0)
47 #define cpu_maybe_ran_vm(cpu, mm) true
113 static inline void activate_context(struct mm_struct *mm, int cpu)
124 int cpu = smp_processor_id();
127 cpu_ran_vm(cpu, next);
128 activate_context(next, cpu);
130 } else if (!cpu_maybe_ran_vm(cpu, next)) {
131 activate_context(next, cpu);