Commit 8f78b749 authored by Waiman Long's avatar Waiman Long Committed by Pablo Neira Ayuso
Browse files

sched/isolation: Make HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAIN



Since commit 041ee6f3 ("kthread: Rely on HK_TYPE_DOMAIN for preferred
affinity management"), kthreads default to use the HK_TYPE_DOMAIN
cpumask. IOW, it is no longer affected by the setting of the nohz_full
boot kernel parameter.

That means HK_TYPE_KTHREAD should now be an alias of HK_TYPE_DOMAIN
instead of HK_TYPE_KERNEL_NOISE to correctly reflect the current kthread
behavior. Make the change as HK_TYPE_KTHREAD is still being used in
some networking code.

Fixes: 041ee6f3 ("kthread: Rely on HK_TYPE_DOMAIN for preferred affinity management")
Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent aa606520
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@ enum hk_type {
	HK_TYPE_KERNEL_NOISE,
	HK_TYPE_MAX,

	/*
	 * HK_TYPE_KTHREAD is now an alias of HK_TYPE_DOMAIN
	 */
	HK_TYPE_KTHREAD = HK_TYPE_DOMAIN,

	/*
	 * The following housekeeping types are only set by the nohz_full
	 * boot commandline option. So they can share the same value.
@@ -29,7 +34,6 @@ enum hk_type {
	HK_TYPE_RCU     = HK_TYPE_KERNEL_NOISE,
	HK_TYPE_MISC    = HK_TYPE_KERNEL_NOISE,
	HK_TYPE_WQ      = HK_TYPE_KERNEL_NOISE,
	HK_TYPE_KTHREAD = HK_TYPE_KERNEL_NOISE
};

#ifdef CONFIG_CPU_ISOLATION