From nobody Sun Feb 8 12:20:22 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EFA01E22E9; Tue, 3 Dec 2024 10:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733222680; cv=none; b=Z3q6zTC6l1cEoM6BWAld9OJbA9Nj8IqZeXkxk+m6+FmmD3qHEJNwi2nlQYXHLOvOKnJebIYpecDo78CHdWSD6sqUbm7eQEX8fyUfZgkK5ompuFbBVA4b0ItINK4FDoLQi+NIhSk+sidGCkC6zgUnm6UET8DYIcQeA5o7aJ1gySs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733222680; c=relaxed/simple; bh=Zr3P9bnPsfdrN22F3DTQ6+XOmUzBlGEeKjBs/OU/Avo=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=OuXecO4me4hIVAWpktPQAgBQdLbNgth9gxSh1LcLF1lY7h7O8LWK7BPk3Iymor0RzbKWLLSfm7k3HYbzwNObPT46BvkpwRROT/1LV7c0sToFGQyIURplsjvSUJFt2vIMd2jGK6wg6xBYob+QUXklk+tlZHUx0DrxifUM5fRmG0M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=An5JReBz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0nMmcWaw; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="An5JReBz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0nMmcWaw" Date: Tue, 03 Dec 2024 10:44:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1733222677; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BIrXjrNs8GypLg/iqHwrNA3eu3+7CZN+VKLSe2NLMjg=; b=An5JReBzGVMzJzjRwogG5W4IBYryW9IedMa/VtTJlYjlb1lDQ9JPaEkuYbydWstZnt5o0K cw27cPjbsg+LcaYVUTEVagkq/B6nI21Hjq0/q912X4d2u/Z+kXTXJKYXaWBxKW01Hp1OJ1 CfXDWKLlYS59Wquw1GhxXZ52Yqwe1lvvqAb4R+V1SR9APQTL0ycnfSO9bY+W3c4rjR72EL 5XSHNS23u7uA4mg8U3kQ61Wf6z6rRwpxu+xb9+3243CvRmOjasCF9yeBPTH42+4OUtTbMe T+XCAZwOuERElqmAEfDiD6dRFKP331Uwu3OIRwDymB0slN9SapqqUOWeQWFm8Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1733222677; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BIrXjrNs8GypLg/iqHwrNA3eu3+7CZN+VKLSe2NLMjg=; b=0nMmcWawK1cOONTDAE2AObaLbL5dk9TuqU70eCDjtXdh8mg/vVZJNOGtcy4PhmSuNEtfQg z6YfHOQakggHwQBA== From: "tip-bot2 for Waiman Long" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched: Unify HK_TYPE_{TIMER|TICK|MISC} to HK_TYPE_KERNEL_NOISE Cc: Waiman Long , "Peter Zijlstra (Intel)" , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20241030175253.125248-5-longman@redhat.com> References: <20241030175253.125248-5-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <173322267649.412.12071655642494350420.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: c907cd44a108eff7005a2b5689bb91f50637df8b Gitweb: https://git.kernel.org/tip/c907cd44a108eff7005a2b5689bb91f50= 637df8b Author: Waiman Long AuthorDate: Wed, 30 Oct 2024 13:52:53 -04:00 Committer: Peter Zijlstra CommitterDate: Mon, 02 Dec 2024 12:24:28 +01:00 sched: Unify HK_TYPE_{TIMER|TICK|MISC} to HK_TYPE_KERNEL_NOISE As all the non-domain and non-managed_irq housekeeping types have been unified to HK_TYPE_KERNEL_NOISE, replace all these references in the scheduler to use HK_TYPE_KERNEL_NOISE. Signed-off-by: Waiman Long Signed-off-by: Peter Zijlstra (Intel) Acked-by: Frederic Weisbecker Link: https://lore.kernel.org/r/20241030175253.125248-5-longman@redhat.com --- kernel/sched/core.c | 12 ++++++------ kernel/sched/fair.c | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 1dee3f5..5fbec67 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1170,13 +1170,13 @@ int get_nohz_timer_target(void) struct sched_domain *sd; const struct cpumask *hk_mask; =20 - if (housekeeping_cpu(cpu, HK_TYPE_TIMER)) { + if (housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE)) { if (!idle_cpu(cpu)) return cpu; default_cpu =3D cpu; } =20 - hk_mask =3D housekeeping_cpumask(HK_TYPE_TIMER); + hk_mask =3D housekeeping_cpumask(HK_TYPE_KERNEL_NOISE); =20 guard(rcu)(); =20 @@ -1191,7 +1191,7 @@ int get_nohz_timer_target(void) } =20 if (default_cpu =3D=3D -1) - default_cpu =3D housekeeping_any_cpu(HK_TYPE_TIMER); + default_cpu =3D housekeeping_any_cpu(HK_TYPE_KERNEL_NOISE); =20 return default_cpu; } @@ -5634,7 +5634,7 @@ void sched_tick(void) unsigned long hw_pressure; u64 resched_latency; =20 - if (housekeeping_cpu(cpu, HK_TYPE_TICK)) + if (housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE)) arch_scale_freq_tick(); =20 sched_clock_tick(); @@ -5773,7 +5773,7 @@ static void sched_tick_start(int cpu) int os; struct tick_work *twork; =20 - if (housekeeping_cpu(cpu, HK_TYPE_TICK)) + if (housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE)) return; =20 WARN_ON_ONCE(!tick_work_cpu); @@ -5794,7 +5794,7 @@ static void sched_tick_stop(int cpu) struct tick_work *twork; int os; =20 - if (housekeeping_cpu(cpu, HK_TYPE_TICK)) + if (housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE)) return; =20 WARN_ON_ONCE(!tick_work_cpu); diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index ef30226..d5127d9 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -12203,7 +12203,7 @@ static inline int find_new_ilb(void) const struct cpumask *hk_mask; int ilb_cpu; =20 - hk_mask =3D housekeeping_cpumask(HK_TYPE_MISC); + hk_mask =3D housekeeping_cpumask(HK_TYPE_KERNEL_NOISE); =20 for_each_cpu_and(ilb_cpu, nohz.idle_cpus_mask, hk_mask) { =20 @@ -12221,7 +12221,8 @@ static inline int find_new_ilb(void) * Kick a CPU to do the NOHZ balancing, if it is time for it, via a cross-= CPU * SMP function call (IPI). * - * We pick the first idle CPU in the HK_TYPE_MISC housekeeping set (if the= re is one). + * We pick the first idle CPU in the HK_TYPE_KERNEL_NOISE housekeeping set + * (if there is one). */ static void kick_ilb(unsigned int flags) {