Home | History | Annotate | Download | only in linux

Lines Matching refs:cpu

21 #define cpu_set(cpu, dst) __cpu_set((cpu), &(dst))
22 #define cpu_clear(cpu, dst) __cpu_clear((cpu), &(dst))
25 #define cpu_isset(cpu, cpumask) test_bit((cpu), (cpumask).bits)
26 #define cpu_test_and_set(cpu, cpumask) __cpu_test_and_set((cpu), &(cpumask))
42 #define cpumask_of_cpu(cpu) ({ typeof(_unused_cpumask_arg_) m; if (sizeof(m) == sizeof(unsigned long)) { m.bits[0] = 1UL<<(cpu); } else { cpus_clear(m); cpu_set((cpu), m); } m; })
59 #define for_each_cpu_mask(cpu, mask) for ((cpu) = first_cpu(mask); (cpu) < NR_CPUS; (cpu) = next_cpu((cpu), (mask)))
61 #define for_each_cpu_mask(cpu, mask) for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask)
68 #define cpu_online(cpu) cpu_isset((cpu), cpu_online_map)
69 #define cpu_possible(cpu) cpu_isset((cpu), cpu_possible_map)
70 #define cpu_present(cpu) cpu_isset((cpu), cpu_present_map)
75 #define cpu_online(cpu) ((cpu) == 0)
76 #define cpu_possible(cpu) ((cpu) == 0)
77 #define cpu_present(cpu) ((cpu) == 0)
83 #define for_each_possible_cpu(cpu) for_each_cpu_mask((cpu), cpu_possible_map)
84 #define for_each_online_cpu(cpu) for_each_cpu_mask((cpu), cpu_online_map)
85 #define for_each_present_cpu(cpu) for_each_cpu_mask((cpu), cpu_present_map)