From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE3B1C5B543 for ; Tue, 10 Jun 2025 07:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=nWI2vyz4t9Hm1uJBAIFqKh7zBZp8XHdjbxbhJ0GHSN8=; b=EJ8KkwEbRZ0V1gNsThmwrVyBYA AAPcQ0Qos1PVZ6SCcQuDCuGD3ccmZk3QpQTocOV8keauJzwo2bdHKNaiBv3Q1dsUZhXdYsdJ1RPb8 VVJ7DzQZ9dNZhGw5lKkezkCkubF+5Pd3fI80gxXTUtc4GyNu3EIilBd7awePsbqNJSwLe/zAAtmWD a0UCqffhgxl1QZ4I1eOffirVIsFYPvQCHj4I1YhLAF4aidEYmcgbjIzy+SEM4kmwfIAi8a4tuYSOk RpuQdshlExTkwIHVaM/4JWPXf31rrrqFKyHti5Llpy8uzVoq8VXUwKM2CYwfiNpvtTFbgiZ3uAzkb 5yi0XQcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uOtt8-000000065on-3qqR; Tue, 10 Jun 2025 07:59:18 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uOtoJ-000000065BI-0TMf for linux-arm-kernel@lists.infradead.org; Tue, 10 Jun 2025 07:54:20 +0000 Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55A0tsC9022393; Tue, 10 Jun 2025 07:53:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pp1; bh=nWI2vyz4t9Hm1uJBAIFqKh7zBZp8XHdjbxbhJ0GHS N8=; b=NtcNAb9iGMlLdIFJB6q9fBbueqFYRFuPUs0kmFYiJaIuQG1yRMSfBjQWh QPQ3UAMPIwJeCcfOOIBUAOXp3WjgFctgOFXQmlv1rMZZi4cAQZLctFzi/jeQzlvI 6nEo/j59rQyy/61FkLWLUXfobkSqq3RfV/pwzNVr6NRDVfgyL7bz81W4quLCbzWf Enc8oTcebZ7U6pKakAFmndUjymF7/1Xw6k7LgllXVodr7IUWXdC713JTMfKExxPI jc/UUyf7z9ivlKw5f9NpBOUhi3vK/mloWwM7TNdCwNKqdXWuu2raHmQWhSEFJw0r AcgNtAGIrYvUT9WOVEtGimzYN7apg== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4769wyhk2a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jun 2025 07:53:58 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 55A5AHcd028076; Tue, 10 Jun 2025 07:53:57 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 47518m9a1d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jun 2025 07:53:57 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 55A7rrWU43254156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 Jun 2025 07:53:53 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8C23F2004D; Tue, 10 Jun 2025 07:53:53 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 49BDC20040; Tue, 10 Jun 2025 07:53:50 +0000 (GMT) Received: from li-7bb28a4c-2dab-11b2-a85c-887b5c60d769.ibm.com.com (unknown [9.39.27.113]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 10 Jun 2025 07:53:50 +0000 (GMT) From: Shrikanth Hegde To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, maddy@linux.ibm.com Cc: sshegde@linux.ibm.com, tglx@linutronix.de, bigeasy@linutronix.de, vschneid@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com Subject: [PATCH 0/1] powerpc, arm64: move preempt dynamic key into kernel/sched Date: Tue, 10 Jun 2025 13:23:43 +0530 Message-ID: <20250610075344.1379597-1-sshegde@linux.ibm.com> X-Mailer: git-send-email 2.43.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: D934p1EPpeZLVRP5Kqwl-WPSBpTaPzGX X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjEwMDA1OCBTYWx0ZWRfX+q998gK2+o81 EvfmeDKzstb0L4QBibqa8pkC6Q/5OXOlWvQbezZSz7okUDsULCW2K0F53law64XzcC3WUkasouK nkDIMPvu6O+C0WNuG0lImhVrE9BFqihwIymnGp/I8ycCWrM+yqZk+HnbVs8WwQ43lXrObRYAV3P EP09TggIBjfmCLHO4HPqxi7NVRBO53cjCleF3Z09Y3k7VdH/FCkE02ex0ENJAENTzp9kluYM6s4 dBvlglvq97nYciWfN1YgGBTgrD25JuR8Ho8rouaGtnfIWq6LbwONGp7fcxs0+bS5lLA8Bdw/u6E STtkV997MgOeanwIRj7FVFQiaoL1miVVQq2t7JTAJrkZJSMS7FX+6kubbBtLlHrVoryuamvm2DZ 71jG+qpgxB/WVz/hzqG0t0U0RPpsPDXJnkajYzvs7W5yUkNtpnh/RQawpF4quxxjqNZCNrJA X-Authority-Analysis: v=2.4 cv=YKGfyQGx c=1 sm=1 tr=0 ts=6847e497 cx=c_pps a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17 a=6IFa9wvqVegA:10 a=cMfPdojDCaELe1LC6y0A:9 X-Proofpoint-GUID: D934p1EPpeZLVRP5Kqwl-WPSBpTaPzGX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_02,2025-06-09_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1011 malwarescore=0 bulkscore=0 priorityscore=1501 phishscore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 mlxlogscore=616 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506100058 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250610_005419_147564_9989DDBF X-CRM114-Status: GOOD ( 13.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Current usage of preempt dynamic key is not specific to architecture and can be moved into sched/core instead. Most of the code around it looks similar. (same code for powerpc, arm64). Since preemption is more associated with scheduler rather than entry/exit, it is probably better that they should be moved. This is tested on powerVM PREEMPT_DYNAMIC=y/n. Only Compile tested on arm64. It would be great if someone can test both PREEMPT_DYNAMIC=y/n configs there. Shrikanth Hegde (1): sched: preempt: Move dynamic keys into kernel/sched arch/arm64/include/asm/preempt.h | 1 - arch/arm64/kernel/entry-common.c | 8 -------- arch/powerpc/include/asm/preempt.h | 16 ---------------- arch/powerpc/kernel/interrupt.c | 4 ---- include/linux/entry-common.h | 1 - include/linux/sched.h | 8 ++++++++ kernel/entry/common.c | 1 - kernel/sched/core.c | 4 ++++ 8 files changed, 12 insertions(+), 31 deletions(-) delete mode 100644 arch/powerpc/include/asm/preempt.h -- 2.43.0