From mboxrd@z Thu Jan 1 00:00:00 1970 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 5237E261B8D; Tue, 30 Jun 2026 09:03:35 +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=1782810216; cv=none; b=ou+bI2J6i0Cd/L1BvJFl3Vn+L4RtyHDVDC/WFpcGAK1s8ziv+j7rfBonIUym1hYnUDaNaTUeegHpLeCUgrV7hfn8lQu6yzaLQQYNSMDrylvqQPPK2KMeRhcFW00jDqNbrX+dO7DSaDaCIxVFvK8V/sSU55q+AbPJppGrKX/d/Xo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782810216; c=relaxed/simple; bh=QAAVtHv1hLMJnXLKjzOClrYKtMnz/ZI5rW+J0LunpQU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=LOqYrIBcnahfS7xbn29rI+YClTcs5YSmkjL9jEf9UhmrYN0Tzf7XowgXF9uP1se5XKlwibiSdRig/UnkwY7/+ZhKJueKvAhaTp42pGOgXJQYmX/S8rV4qPJ5Kl9Zfe5I9NUfUje35zMGRSj1vLwIWbL3i2XGITSzNbPgAUEbH+0= 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=Z0N58bBL; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ETA4dJoW; 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="Z0N58bBL"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ETA4dJoW" Date: Tue, 30 Jun 2026 09:03:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1782810213; 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=USCpW4143aJc6k5EMn9kbibZy5KixtjvMWpacO6iaXk=; b=Z0N58bBLqMEr/xrsqMT3MhUz6SvlsX2nwhH+LcSwNaCIZU8oVz1pXrdO/xrp1kaOL4mnQb Z2l4XoxgzXt+u6kmELuLb0q3eAMZ6PKj34aMe3WiQvCAopcGuXRFPwiaPkbKSzvnzNeii+ nwbiWiJfIQeZ5Desn0g7nTIJuu/p5MUEY0kK9THoNEZ1oC8zM3bnd9nzKvTZWFbC2Jmnlj JK9u/oqgAulQv7kubxAak4ToB0nJnbgdMTv3WEt8AaVrCb2BynqiyZI8p02nZDm4vt66e0 USYuacBG0mXeMiAStF0s/rihLAc8RohiWQfeT5qAJpPpgs8+uRUooOOf/mlh7w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1782810213; 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=USCpW4143aJc6k5EMn9kbibZy5KixtjvMWpacO6iaXk=; b=ETA4dJoW8MJ8p9MErISotS6d7feZcfVvqPHuGerTeK6E9hdCTIZy5uf6ZxsihcQu/zgSXZ GrVl5Z6VP4PtzJBg== From: "tip-bot2 for Shrikanth Hegde" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/debug: Remove unused schedstats Cc: Shrikanth Hegde , "Peter Zijlstra (Intel)" , K Prateek Nayak , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260625124648.802832-2-sshegde@linux.ibm.com> References: <20260625124648.802832-2-sshegde@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178281021143.3843924.895688067280333624.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: b2463ebf2674ddec62f0f0e63061670bc2c75346 Gitweb: https://git.kernel.org/tip/b2463ebf2674ddec62f0f0e63061670bc2c= 75346 Author: Shrikanth Hegde AuthorDate: Thu, 25 Jun 2026 18:16:25 +05:30 Committer: Peter Zijlstra CommitterDate: Tue, 30 Jun 2026 10:56:57 +02:00 sched/debug: Remove unused schedstats nr_migrations_cold, nr_wakeups_passive and nr_wakeups_idle are not being updated anywhere. So remove them. These are per process stats. So updating sched stats version isn't necessary. Signed-off-by: Shrikanth Hegde Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: K Prateek Nayak Tested-by: K Prateek Nayak Link: https://patch.msgid.link/20260625124648.802832-2-sshegde@linux.ibm.com --- include/linux/sched.h | 3 --- kernel/sched/debug.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 12f6335..968b18a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -550,7 +550,6 @@ struct sched_statistics { s64 exec_max; u64 slice_max; =20 - u64 nr_migrations_cold; u64 nr_failed_migrations_affine; u64 nr_failed_migrations_running; u64 nr_failed_migrations_hot; @@ -563,8 +562,6 @@ struct sched_statistics { u64 nr_wakeups_remote; u64 nr_wakeups_affine; u64 nr_wakeups_affine_attempts; - u64 nr_wakeups_passive; - u64 nr_wakeups_idle; =20 #ifdef CONFIG_SCHED_CORE u64 core_forceidle_sum; diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index c15291c..72236db 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1442,7 +1442,6 @@ void proc_sched_show_task(struct task_struct *p, struct= pid_namespace *ns, P_SCHEDSTAT(wait_count); PN_SCHEDSTAT(iowait_sum); P_SCHEDSTAT(iowait_count); - P_SCHEDSTAT(nr_migrations_cold); P_SCHEDSTAT(nr_failed_migrations_affine); P_SCHEDSTAT(nr_failed_migrations_running); P_SCHEDSTAT(nr_failed_migrations_hot); @@ -1454,8 +1453,6 @@ void proc_sched_show_task(struct task_struct *p, struct= pid_namespace *ns, P_SCHEDSTAT(nr_wakeups_remote); P_SCHEDSTAT(nr_wakeups_affine); P_SCHEDSTAT(nr_wakeups_affine_attempts); - P_SCHEDSTAT(nr_wakeups_passive); - P_SCHEDSTAT(nr_wakeups_idle); =20 avg_atom =3D p->se.sum_exec_runtime; if (nr_switches)