Lines Matching refs:housekeeping

24 struct housekeeping {  struct
29 static struct housekeeping housekeeping; variable
33 return !!(READ_ONCE(housekeeping.flags) & BIT(type)); in housekeeping_enabled()
60 return rcu_dereference_all_check(housekeeping.cpumasks[type], in housekeeping_cpumask_dereference()
69 if (READ_ONCE(housekeeping.flags) & BIT(type)) in housekeeping_cpumask()
83 if (housekeeping.flags & BIT(type)) { in housekeeping_any_cpu()
107 if (housekeeping.flags & BIT(type)) in housekeeping_affine()
115 READ_ONCE(housekeeping.flags) & BIT(type)) in housekeeping_test_cpu()
136 if (!housekeeping.flags) in housekeeping_update()
139 if (housekeeping.flags & HK_FLAG_DOMAIN) in housekeeping_update()
142 WRITE_ONCE(housekeeping.flags, housekeeping.flags | HK_FLAG_DOMAIN); in housekeeping_update()
143 rcu_assign_pointer(housekeeping.cpumasks[HK_TYPE_DOMAIN], trial); in housekeeping_update()
169 if (!housekeeping.flags) in housekeeping_init()
174 if (housekeeping.flags & HK_FLAG_KERNEL_NOISE) in housekeeping_init()
180 for_each_set_bit(type, &housekeeping.flags, HK_TYPE_MAX) { in housekeeping_init()
186 omask = rcu_dereference(housekeeping.cpumasks[type]); in housekeeping_init()
191 RCU_INIT_POINTER(housekeeping.cpumasks[type], nmask); in housekeeping_init()
202 RCU_INIT_POINTER(housekeeping.cpumasks[type], mask); in housekeeping_setup_type()
211 if ((flags & HK_FLAG_KERNEL_NOISE) && !(housekeeping.flags & HK_FLAG_KERNEL_NOISE)) { in housekeeping_setup()
233 if (!housekeeping.flags) { in housekeeping_setup()
242 if (!housekeeping.flags) { in housekeeping_setup()
251 unsigned long iter_flags = flags & housekeeping.flags; in housekeeping_setup()
267 iter_flags = housekeeping.flags & (HK_FLAG_KERNEL_NOISE | HK_FLAG_DOMAIN); in housekeeping_setup()
284 iter_flags = flags & ~housekeeping.flags; in housekeeping_setup()
290 if ((flags & HK_FLAG_KERNEL_NOISE) && !(housekeeping.flags & HK_FLAG_KERNEL_NOISE)) in housekeeping_setup()
293 housekeeping.flags |= flags; in housekeeping_setup()