Lines Matching full:housekeeping

3  *  Housekeeping management. Manage the targets for routine code that can run on
26 struct housekeeping { struct
31 static struct housekeeping housekeeping; argument
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()
95 /* We need at least one CPU to handle housekeeping work */ 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()
115 if ((flags & HK_FLAG_TICK) && !(housekeeping.flags & HK_FLAG_TICK)) { in housekeeping_setup()
117 pr_warn("Housekeeping: nohz unsupported." in housekeeping_setup()
125 pr_warn("Housekeeping: nohz_full= or isolcpus= incorrect CPU range\n"); in housekeeping_setup()
137 if (!housekeeping.flags) { in housekeeping_setup()
138 pr_warn("Housekeeping: must include one present CPU, " in housekeeping_setup()
146 if (!housekeeping.flags) { in housekeeping_setup()
155 unsigned long iter_flags = flags & housekeeping.flags; in housekeeping_setup()
159 housekeeping.cpumasks[type])) { in housekeeping_setup()
160 pr_warn("Housekeeping: nohz_full= must match isolcpus=\n"); in housekeeping_setup()
165 iter_flags = flags & ~housekeeping.flags; in housekeeping_setup()
171 if ((flags & HK_FLAG_TICK) && !(housekeeping.flags & HK_FLAG_TICK)) in housekeeping_setup()
174 housekeeping.flags |= flags; in housekeeping_setup()