Lines Matching refs:housekeeping
26 struct housekeeping { struct
31 static struct housekeeping housekeeping; variable
35 return !!(housekeeping.flags & BIT(type)); in housekeeping_enabled()
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()
59 if (housekeeping.flags & BIT(type)) in housekeeping_cpumask()
60 return housekeeping.cpumasks[type]; in housekeeping_cpumask()
68 if (housekeeping.flags & BIT(type)) in housekeeping_affine()
69 set_cpus_allowed_ptr(t, housekeeping.cpumasks[type]); in housekeeping_affine()
76 if (housekeeping.flags & BIT(type)) in housekeeping_test_cpu()
77 return cpumask_test_cpu(cpu, housekeeping.cpumasks[type]); in housekeeping_test_cpu()
86 if (!housekeeping.flags) in housekeeping_init()
91 if (housekeeping.flags & HK_FLAG_TICK) in housekeeping_init()
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()
104 alloc_bootmem_cpumask_var(&housekeeping.cpumasks[type]); in housekeeping_setup_type()
105 cpumask_copy(housekeeping.cpumasks[type], in housekeeping_setup_type()
114 if ((flags & HK_FLAG_TICK) && !(housekeeping.flags & HK_FLAG_TICK)) { in housekeeping_setup()
135 if (!housekeeping.flags) { in housekeeping_setup()
141 if (!housekeeping.flags) { in housekeeping_setup()
150 unsigned long iter_flags = flags & housekeeping.flags; in housekeeping_setup()
154 housekeeping.cpumasks[type])) { in housekeeping_setup()
160 iter_flags = flags & ~housekeeping.flags; in housekeeping_setup()
166 if ((flags & HK_FLAG_TICK) && !(housekeeping.flags & HK_FLAG_TICK)) in housekeeping_setup()
169 housekeeping.flags |= flags; in housekeeping_setup()