Lines Matching refs:type
33 bool housekeeping_enabled(enum hk_type type) in housekeeping_enabled() argument
35 return !!(housekeeping.flags & BIT(type)); in housekeeping_enabled()
39 int housekeeping_any_cpu(enum hk_type type) in housekeeping_any_cpu() argument
44 if (housekeeping.flags & BIT(type)) { in housekeeping_any_cpu()
45 cpu = sched_numa_find_closest(housekeeping.cpumasks[type], smp_processor_id()); in housekeeping_any_cpu()
49 return cpumask_any_and(housekeeping.cpumasks[type], cpu_online_mask); in housekeeping_any_cpu()
56 const struct cpumask *housekeeping_cpumask(enum hk_type type) in housekeeping_cpumask() argument
59 if (housekeeping.flags & BIT(type)) in housekeeping_cpumask()
60 return housekeeping.cpumasks[type]; in housekeeping_cpumask()
65 void housekeeping_affine(struct task_struct *t, enum hk_type type) in housekeeping_affine() argument
68 if (housekeeping.flags & BIT(type)) in housekeeping_affine()
69 set_cpus_allowed_ptr(t, housekeeping.cpumasks[type]); in housekeeping_affine()
73 bool housekeeping_test_cpu(int cpu, enum hk_type type) in housekeeping_test_cpu() argument
76 if (housekeeping.flags & BIT(type)) in housekeeping_test_cpu()
77 return cpumask_test_cpu(cpu, housekeeping.cpumasks[type]); in housekeeping_test_cpu()
84 enum hk_type type; in housekeeping_init() local
94 for_each_set_bit(type, &housekeeping.flags, HK_TYPE_MAX) { in housekeeping_init()
96 WARN_ON_ONCE(cpumask_empty(housekeeping.cpumasks[type])); in housekeeping_init()
100 static void __init housekeeping_setup_type(enum hk_type type, in housekeeping_setup_type() argument
104 alloc_bootmem_cpumask_var(&housekeeping.cpumasks[type]); in housekeeping_setup_type()
105 cpumask_copy(housekeeping.cpumasks[type], in housekeeping_setup_type()
143 enum hk_type type; in housekeeping_setup() local
145 for_each_set_bit(type, &flags, HK_TYPE_MAX) in housekeeping_setup()
146 housekeeping_setup_type(type, housekeeping_staging); in housekeeping_setup()
149 enum hk_type type; in housekeeping_setup() local
152 for_each_set_bit(type, &iter_flags, HK_TYPE_MAX) { in housekeeping_setup()
154 housekeeping.cpumasks[type])) { in housekeeping_setup()
162 for_each_set_bit(type, &iter_flags, HK_TYPE_MAX) in housekeeping_setup()
163 housekeeping_setup_type(type, housekeeping_staging); in housekeeping_setup()