From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 E1E3F361DBC for ; Wed, 17 Jun 2026 17:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781718374; cv=none; b=qDYKHU3sBmoVQwqC7SrUI7eGVUvS5WAHsXQmo6TNVxfqpqjw5xW7t4S29gUxMQoC9lXtn2QruiVRuX0RIbo20pWccaZPxrHg+i0XWeGtVZtZ2NUwk5Woc31IY1c/WCrv2lcAGuT5YJ+Pf+HLdFr4lQGF90BSA2Sqcgf5eUarabA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781718374; c=relaxed/simple; bh=6hTrZchiV5AJk/X26tuihcmTSWsvZP6h0yXZxNGNulg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mBEiRP/VUQ+zzkDjT3y3UHSbLUZJXpODmU2uoFB/GCSCDGDLz533jZnZfEig6bFNrigx583zqAK6vLF6yg3qsnIgWOF2vyz4QN7sXcn7uTiBFJdYpDmH3konO09XjB7NnKRLTYhd24D7330f8QcqdpwwoSBFYay5TRIiDR/RZHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=TvOlYFIZ; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="TvOlYFIZ" Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65HFoTNp993094; Wed, 17 Jun 2026 17:42:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=V9yyyP3QyUGpI4IyX A8YCjjiEfkcxW1/Z4BWKUgqHu4=; b=TvOlYFIZ0f7Bd4HLAbLGrdrCct8Im7JZR tdin1HAZYbHSwza+f+4jXOh+GSi0qj0DWh87dHt5rH0Y9RLjv4VBTKe4UrXCokNH L7SHiHyQi0PYcK/q0l5AIThIDVfA2JX5SgnuQDmvs98tKb2mLliF/exRvgbAgU/f AVox1+UNBxcUHvBikO3iylkQB2WdbWdNcAr8qJAREKN4YwwrzFT+BllNGWKkxYFE UpDNe+I5x+TvEeEqeUHF/GmNTdE6LjEMywPy2r8sF18SmllSv0h/RIrKLQrlz3j5 56ZgVwkUEYxuhYNtYph5zhvTw8fcNrKmnVIX8kRp9DgSSWX6ux9Og== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4euequ48na-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jun 2026 17:42:42 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id 65HHYbwJ009648; Wed, 17 Jun 2026 17:42:40 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4eudvacbe0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jun 2026 17:42:40 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 65HHgblu42402092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Jun 2026 17:42:37 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0778920049; Wed, 17 Jun 2026 17:42:37 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD51220040; Wed, 17 Jun 2026 17:42:29 +0000 (GMT) Received: from li-7bb28a4c-2dab-11b2-a85c-887b5c60d769.ibm.com.com (unknown [9.39.28.77]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 17 Jun 2026 17:42:29 +0000 (GMT) From: Shrikanth Hegde To: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, yury.norov@gmail.com, kprateek.nayak@amd.com, iii@linux.ibm.com Cc: sshegde@linux.ibm.com, tglx@kernel.org, gregkh@linuxfoundation.org, pbonzini@redhat.com, seanjc@google.com, vschneid@redhat.com, huschle@linux.ibm.com, rostedt@goodmis.org, dietmar.eggemann@arm.com, mgorman@suse.de, bsegall@google.com, maddy@linux.ibm.com, srikar@linux.ibm.com, hdanton@sina.com, chleroy@kernel.org, vineeth@bitbyteword.org, frederic@kernel.org, arighi@nvidia.com, pauld@redhat.com, christian.loehle@arm.com, tj@kernel.org, tommaso.cucinotta@gmail.com, maz@kernel.org, rafael@kernel.org Subject: [PATCH v4 01/20] sched/debug: Remove unused schedstats Date: Wed, 17 Jun 2026 23:11:20 +0530 Message-ID: <20260617174139.155540-2-sshegde@linux.ibm.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260617174139.155540-1-sshegde@linux.ibm.com> References: <20260617174139.155540-1-sshegde@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE3MDE2NiBTYWx0ZWRfX65aBACfQVKCf Lbc+Q1moQ/+eKuavgZ482B8KgDyiEk5lnh6EyJD/NIQND/QnRga3sh23YYvF/ZCZSiok1n9EsPT +ESJC0kSten9gVYWw06o2Bt/G/pVjyg= X-Proofpoint-ORIG-GUID: 1T0Pev5Fn7D9WmYImNZNa9nqWvoeEmLx X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE3MDE2NiBTYWx0ZWRfXzTPQ2tBmE6OA Sc5XBeXRySiGcejlylGtRdOez139lVnf4xeGrRkFWETXzvb/XZmfDO45hG5GAkj+enaETWeqSOq YVt2lAFmUhwwPgGxDx3559Fgk7a1ZekGWTtPn07ZPNaKLViXI8EmG7u5ZlmrHUUnPR4PozeaW3O GtBlkH2aNgFvxzvbLratJj/3KHLyZivSnMcsrtVPCKwUQExmDVJRzDhe1mh/JPIH6Wnu2NFQhzH UMh7KKl4wMCRNgWdQXeJRtZy7wvOk8ZYMFKftBnzvQim7dvDq2czylXpPx1gKEeYvBulI8Vt5Ap 8cwVQ/kE/0XAy1+CGLCYhzjKrhWyRt3+VAx6E6JEucF9IuG3ihLxCLUhPcGJULpeKmzkDBKwG2v mYkHrjggwmMurx1jIiO52BkE6Xju/QbcuSXpT9g6AE3mVW1aZc1UWFxRFpzNtb+g68wz0WpMnlw hx0Yf/vhL5g6k4fvqWQ== X-Proofpoint-GUID: ko2hM-3nawNE8zqdAm44ucB365_xLHPA X-Authority-Analysis: v=2.4 cv=L9gtheT8 c=1 sm=1 tr=0 ts=6a32dc92 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=FelO9ux0wxsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=zd2uoN0lAAAA:8 a=VnNF1IyMAAAA:8 a=NlpiSR-wqh4DhfsiYFIA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-17_02,2026-06-17_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 malwarescore=0 clxscore=1015 adultscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606170166 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. Reviewed-by: K Prateek Nayak Tested-by: K Prateek Nayak Signed-off-by: Shrikanth Hegde --- 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 35e6183ef615..fc6ecb3869dd 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -550,7 +550,6 @@ struct sched_statistics { s64 exec_max; u64 slice_max; - 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; #ifdef CONFIG_SCHED_CORE u64 core_forceidle_sum; diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 40584b27ea0c..f3a033b34ba0 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1359,7 +1359,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); @@ -1371,8 +1370,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); avg_atom = p->se.sum_exec_runtime; if (nr_switches) -- 2.47.3