From patchwork Tue Nov 7 21:56:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449376 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F92EC4167D for ; Tue, 7 Nov 2023 21:59:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4622D8D005E; Tue, 7 Nov 2023 16:58:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 354C98D0068; Tue, 7 Nov 2023 16:58:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAA0F8D005E; Tue, 7 Nov 2023 16:58:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id C5C2E8D0065 for ; Tue, 7 Nov 2023 16:58:52 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 9FFF780BB9 for ; Tue, 7 Nov 2023 21:58:52 +0000 (UTC) X-FDA: 81432523704.23.98F6E80 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf23.hostedemail.com (Postfix) with ESMTP id 2AF5B14000F for ; Tue, 7 Nov 2023 21:58:48 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=Mks59KGe; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NUW4SUMr; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf23.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394329; a=rsa-sha256; cv=pass; b=M3xs09Qc6h3qjDwERsrLWDDurCY1ZSIgF5U1kBJyo+iFk8dRBQAvDnLL25BJbUInyLwnoU A1vQisVrikcCQS/YOkRK3LgFUskOerfMqAc3hc02FL6NGOX44URhKmjhgI8C3hzp4x9vXB xWVKWqul546RQ0sNJvL/eHVyfXGTSQc= ARC-Authentication-Results: i=2; imf23.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=Mks59KGe; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NUW4SUMr; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf23.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394329; h=from:from:sender: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:dkim-signature; bh=z23gi0AtPCZZif+I2F8wsU0hcS0zcnRuySiHcw3gMC0=; b=lIyHCDqRbElO7cht38AE/cwiR3DrP1w5vmvsw/UNSZ2X426JaJFZJ+akw3bf+KuoRR6VUD zXCH4s48tO1y2Y4Ydl74LJIfkOmaHlPhUtBytZIXAKrff2AByYqhxrKzYLbM42mECX1M28 QQp8QbhdxW9ObFlkuMFaE57O0vBI4pE= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJLZx028111; Tue, 7 Nov 2023 21:58:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=z23gi0AtPCZZif+I2F8wsU0hcS0zcnRuySiHcw3gMC0=; b=Mks59KGeX405Q3IgJ5hTuBU9MQdOgWh7PHXUqiAPjslkjNP+baul0f9D2YWeGtNyiIFo yEwSTOkv5j7ef7Mc1J1Id3wU0WV6MhfuVW8T+UuhIUdQXFmJAX7kyudRq0lpbQrQrP7W qH9/RKY3+wu8W89pk4pcQneTxS14AVv3+gBylPP2yRf0WPB2VdDeDG2vwA0vv6GQcjbA zpzMPP7ljnxiONWZXKJrxurX+yjYYH3AhyJCt/tpKKHd67HbDqxXDXvuREJNg5XVC2T4 TTn3XUWA+wGMt4aZ1v+QnnCn13V+eIQR9Nq3ELxF2wFFycPO6Ow7w4b3ZEaWP6l5uMA2 fg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23029k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:24 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LItT5000430; Tue, 7 Nov 2023 21:58:24 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1wsjve-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kH0jKf9JdPgE9jJt3JVYPPEb3nZvEsD8SqLPSa7yGaRJjXG36xVrpca8gvWdoBWSaLR/RlAd7H3QgqZa2c6frHT/YRflbX5XY09Atb45JN0WVXHUnd5VnNP3gUwWEOIycmXAKq5/SIMwephmVc/bHh86phsETREGxRoAIJBPlJe+f0Zzpf2V56u2ffHkIs6hIqEw+Yo50llbWrMt0PSsdBHW5AxmVr9Bkn7/pitklawc60KEFED/T/O1L5rXimGAZSgHG1c3dq5wqgygzD8KQ86pTaFC7E4LhnzXLobjARGcMMQGlMW/rdKZx6rXFpx2YWEOqKe7MwfP4ET0aNy/XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z23gi0AtPCZZif+I2F8wsU0hcS0zcnRuySiHcw3gMC0=; b=LTOZnm8AiYEwp/Hu6YctvDGwZsEFrKIg7ZDNN/ESseFn2i2X7sOAuptQUkuMd01qMObZkAazKE30PSdAXHiXb7I6Ok45S0G4CvybbS4Zel0yKAb94aVcyYNuMnwNpJ51mZJeAmofTk1or/FzxP/MT5ZzPHg8aHTQ/ug4jzERbQKAPccFgLkwbZh+DxbZxANo15CbdKXKEaAWh6ldJxzbBKDXbFYQeR7X8fANliFRwH5lTEUpy4LjfI1hZlkK6PH/Ug5Ay7GxASEJHjRdhvU6iJ2EUZZgnIsUZskCQGvBKlurHeK58qQCs1mujwbAM5rDEqWWYkrLbBAkDdZe633V6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z23gi0AtPCZZif+I2F8wsU0hcS0zcnRuySiHcw3gMC0=; b=NUW4SUMrtSVI+bDj/sw+0O7V+GzregqnvGl59eEf8CnCtZuthbOop0BdmvIAlFHyTzCSBrXUbg7cg/faAh+YOhTcI/LjKZE/SrTP2Pr2a/1oqetRcUNxWrPqyjHkCGZNNO6ZGtYuzujaWzVVc9jaW5IZ8KB0AzH8LAodZMR20eE= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BN0PR10MB5048.namprd10.prod.outlook.com (2603:10b6:408:117::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Tue, 7 Nov 2023 21:58:20 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::1ce3:4a8c:4c99:acea%7]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 21:58:20 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, paulmck@kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, mingo@kernel.org, bristot@kernel.org, mathieu.desnoyers@efficios.com, geert@linux-m68k.org, glaubitz@physik.fu-berlin.de, anton.ivanov@cambridgegreys.com, mattst88@gmail.com, krypton@ulrich-teichert.org, rostedt@goodmis.org, David.Laight@ACULAB.COM, richard@nod.at, mjguzik@gmail.com, Ankur Arora Subject: [RFC PATCH 12/86] Revert "sched/preempt: Refactor sched_dynamic_update()" Date: Tue, 7 Nov 2023 13:56:58 -0800 Message-Id: <20231107215742.363031-13-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231107215742.363031-1-ankur.a.arora@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> X-ClientProxiedBy: MW3PR06CA0012.namprd06.prod.outlook.com (2603:10b6:303:2a::17) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BN0PR10MB5048:EE_ X-MS-Office365-Filtering-Correlation-Id: 320f4a32-1e51-4f5f-98d3-08dbdfdca7ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dMHsp3s+HoPVPw2EZbN2edDtvrtSP1qzdWLj6bjOrDToo8qagclXp8rwEW/rUN6uNyiYK4FQUMCd+M6pW/VVhs7HacklTrZWzpanaB8xnHHIrng3fAsQs6dyK942N4nfX7eJkNkOQSU8fAY3JQeBPtfwpsfcktU7feXvB2LqVIgXxlK6RvuOgeN1yhZZWxzOa/+0syL/+oSMmsEvETVSraH/98Rg/GZJYJrbf/ZldHUhkSWXoQdiK+UbdgyZ5MRfGWg0kq8PeoEiZDUajQpN/lhH2Ug2NJzxjsiw/AqQzN/+eeAe7xa2yesa8unUC0bQmAFc/jV2rH5dgNhw4A5BUriu+mSaHMhetRGTIfIlpq0kBMIo+0suQZaqP7LbMR42G6OR6HWBAiS+HsH7X5YMau/0hJkdc614waTePZYKlNEx6OGO7CwAZEQFGwhp/1mRVVGISStjipCc4FIjhWZVkDipW7mY28eqfafcg9mKDNsSGUnF0iPLN7ScEP2VHRfcvX4XKAnBCFtMiSAge4Uxf2MCqDNNHG2CfJiZZ6Echu1OOuMOunZHP4CGlMWiF0QV X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(39860400002)(346002)(376002)(136003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(8936002)(4326008)(8676002)(66476007)(66556008)(316002)(6916009)(66946007)(41300700001)(103116003)(2906002)(86362001)(7406005)(7416002)(5660300002)(83380400001)(107886003)(2616005)(26005)(1076003)(38100700002)(36756003)(478600001)(6512007)(6486002)(6666004)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bx9YM9m7pPPC2+G6Gy3FxhJ8+Bz8GFh6fR2m9BFg4F+QDU++anm9MQj3QWu4Ng0qZ2ZkbZf20fuPQIE3HTFtUohpkczcLnDXVFRUBYoyf+8SxvqlFupxrZm8srRLnjjUSax5psnEfjOh0226kxJ5wVOmhwS+jKSTfIXcNcMuHh0PIL27gTXXMHaMuX9BvJ9rXjd4oO4CRr4nVL5zwq8hJh6l3mtO0fl3ze1Gy7uaQMeK3AT8/Nkman+nvRQa7s1DLVqBauqaLJ6PoH1OE5v3sCOsIc2AUoIggt7+aHc9vR0rLbbgxHQNpVgN8arGN52Curs36HzgCQ/f5UiNRUtC/bNLB3Th+OAU98M0LFHzVoQfw+9jLFdAVyt3GXq3apxK8o0QpfBfzTVeF8l9XYN9Yd1QCltpQuqdg5jsRtF70C/nMOiC6gLEdISK0LDww0gBNdUyq/9BzwIxqJ60xLYeOJF7f0GYv4iSQ7yZWYQu1+OYI5IDv+YBR5tTBVOBLLYtHL3Vy2O5UqNKZFNDeOhtOlrUj/IqR9YdN4F0FpY/WoVTGj3RHXKEiMPva9vGiy/v1lpCmlddpSg2SRyoyx+N4PsrpcKuQh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Xid7W/1r/mpk32pl2oCEuKnJIQ6sRRDmrpB/3Xp4Kk4eX2dQ/u/dn0Izg8LkRPMG0bm6JDfIM04qfindVcU4WPoKgS/yZdexwMN2PBdM2Ungih8XEMaQY3rbYQCb4y3SjujkItOfwDMg6iREBnDnx0jD2yFwUtkLAtLAjlwFLMxWGAgoxbTQc4e3JzkZugF8MMPLrp3kqT5n92YeojJNOWYdm5zPudDvlkyDlDn+RGrYErBgcPZ7PQuwr7AczG0ejSAx6PHgvVjyTlOR8vDJtpEJTVmHVvV1R2hUmUrfabQ5FJEbHjYWpprjQJsS4J/d517o4nA/xh+vV5xKOOkD3ocX937XyUFnIdh5erIaBkYvMov5fEzMMgLnmvuRw8pSKx3Bm+9lqnlrV8xDCzLEtpRkeJg3TbvJDU3NsMO0hu69N4e7P0j3c8mxo4waLZ5qQcmZLH7K0QaaS7K7dYglBTL1TABYVm6JDes4ZP9juRRnMl2zqeCA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 320f4a32-1e51-4f5f-98d3-08dbdfdca7ed X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 21:58:20.8165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: L3Y9KvHETsUeBduK9r18QeP0BNuCkUfu+AwspQ9vn31HQpeoFDbzmJomqZ7pW1w1i5KknBdA/24b3VL+R3AZ/quB1xZLMyOhPkGenpeon1E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5048 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-07_13,2023-11-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 suspectscore=0 mlxlogscore=862 adultscore=0 spamscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-GUID: z1oN0H65vRw59VGfHUa9iBN_-9hL8IzC X-Proofpoint-ORIG-GUID: z1oN0H65vRw59VGfHUa9iBN_-9hL8IzC X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 2AF5B14000F X-Stat-Signature: ai1atnrnta5stm3sitkik51x1beanid5 X-HE-Tag: 1699394328-497767 X-HE-Meta: U2FsdGVkX1+9lo6MGDK90Z9qc9Q+2h4H10To1oMTMQ42FYv/qb+Wrm9KgMU/HT29gNwR+0zlpmNwVQar6sYmE+x9Yx8kcJ3zk36YWjxYCaq67bSJqVH96W8vB4EPYUc9CS3EcySZ0x3T6H9ji9FKExupdSYbfDqwhonxA+ZdAeVhUoZiFjXq2lW4Z4e0ME4QMOtAB9RlLwdPsmF4wzmmQJf8cUI9j5X0e41R/wWTa7e42amkyA3CHJgOXevC+XPPNXn48wRhQduQAXaiBHuHWtD/+UX67uuMDxT6VFzNX+r8lCNkmAgpsDcJoGgBZLMJfNQoiuG+HEU+bkCyt7+UAkcMjo++QyveYKJRNKjWguXRWtjS7CvjHNj4Nq/RbVlXvNy7QEUqBfRa05kAubmv9DrxN5CNlFKAbjlwQLNlY46y/nySB2/kBELTtZZ5OcWAqq9nsD/DBMIUnkHaEqtYSuPFW0QMjRXlvjh7ho6LUG4rN85JyNzgsb+aR9nxwqo5eL1HgdrRDrNqnzF6h5Jpcs+O3qMbb13sfOjXxlFOgPK3uEwJyeYbEF+CcErC56v4VvqmiB+LpJXc+ASbuunE99p2DuNGGD7n52XcNoctG8hjze7H6QEfoCNBLKf5X4VStZx/fp6UqCizn9V8JY39Tm559LftYo3NzzO61cZ+6qtYlz11/VK5udi9ydF2wVrETJCkbM4Xr1tM/nM/iXUefv1bVgNNIjeSKh+ccGajgdDMko5j0AqxG9a4JRPuYRp/benHivNfrJqma216U1zDh2mDezw2sCHgLiEaCBUHl6eZPWTI7gTHzxFBSwQZpcmkMII1a+K+7Rn0oFaueaF8G2GEuZ5tC63PQVTEZIGkfe3HT4h3vypNzdhJCs/uAZ0rWHLOt4zZ4YBl6DvGxDGnktUzLfZ40jvvhQ9y5T4Vb2uE6CHMD0qEH6tTH4/HFgiGBpXDzX18MHgY3g9sm1z 4+EkJGxW hjXL+CkLTh7qisvhu1dV44o5bJ0196lRIUGBLTyEkZZ7cqnm24E0E8fp9vaV/SH0KhqIgF4cmE9slETTTuQB4BrJEqdC5II7gPJ/5ySZeVnwSckinRN21H+zev90x7vN9tXgsBZjiLayBbe1mcXPxkYHqk92QV8BzfpLUipbCpuB5lL0J8jj3ss3pRSGp/IJ3KIwGbQRn4KPCJ78tLBhfEZCo8ko0FsTFmwrofzfKHq5yEfn22SFB59DwsAom5pHrS0qLgjXsYa4VJUWiSRlAr8MKOPVJmawwm6vNgRLgDVQYIdq4u8vLU2bWqI8Qgg1MgMQUvr1LBWbreZL71c/y/DYqhcVdG7gjDL90n1cbDFGEccAjIszQRjYtNr/T4A4SJJeLN2UY6RvXXQJtbvGIDQq9oTxP8LPddFFzchA+v1ATUfiljeshiNlvzxLIYC9kLJs+2m5ZikXDqNamV0UotLEH6A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This reverts commit 8a69fe0be143b0a1af829f85f0e9a1ae7d6a04db. Signed-off-by: Ankur Arora --- arch/x86/include/asm/preempt.h | 10 +++--- include/linux/entry-common.h | 2 -- kernel/sched/core.c | 59 +++++++++++++--------------------- 3 files changed, 26 insertions(+), 45 deletions(-) diff --git a/arch/x86/include/asm/preempt.h b/arch/x86/include/asm/preempt.h index 2d13f25b1bd8..495faed1c76c 100644 --- a/arch/x86/include/asm/preempt.h +++ b/arch/x86/include/asm/preempt.h @@ -109,18 +109,16 @@ static __always_inline bool should_resched(int preempt_offset) extern asmlinkage void preempt_schedule(void); extern asmlinkage void preempt_schedule_thunk(void); -#define preempt_schedule_dynamic_enabled preempt_schedule_thunk -#define preempt_schedule_dynamic_disabled NULL +#define __preempt_schedule_func preempt_schedule_thunk extern asmlinkage void preempt_schedule_notrace(void); extern asmlinkage void preempt_schedule_notrace_thunk(void); -#define preempt_schedule_notrace_dynamic_enabled preempt_schedule_notrace_thunk -#define preempt_schedule_notrace_dynamic_disabled NULL +#define __preempt_schedule_notrace_func preempt_schedule_notrace_thunk #ifdef CONFIG_PREEMPT_DYNAMIC -DECLARE_STATIC_CALL(preempt_schedule, preempt_schedule_dynamic_enabled); +DECLARE_STATIC_CALL(preempt_schedule, __preempt_schedule_func); #define __preempt_schedule() \ do { \ @@ -128,7 +126,7 @@ do { \ asm volatile ("call " STATIC_CALL_TRAMP_STR(preempt_schedule) : ASM_CALL_CONSTRAINT); \ } while (0) -DECLARE_STATIC_CALL(preempt_schedule_notrace, preempt_schedule_notrace_dynamic_enabled); +DECLARE_STATIC_CALL(preempt_schedule_notrace, __preempt_schedule_notrace_func); #define __preempt_schedule_notrace() \ do { \ diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h index 6567e99e079e..49e9fe9489b6 100644 --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -416,8 +416,6 @@ irqentry_state_t noinstr irqentry_enter(struct pt_regs *regs); */ void irqentry_exit_cond_resched(void); #ifdef CONFIG_PREEMPT_DYNAMIC -#define irqentry_exit_cond_resched_dynamic_enabled irqentry_exit_cond_resched -#define irqentry_exit_cond_resched_dynamic_disabled NULL DECLARE_STATIC_CALL(irqentry_exit_cond_resched, irqentry_exit_cond_resched); #endif diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 686e89d4ebb7..2268d9e23635 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6892,11 +6892,7 @@ NOKPROBE_SYMBOL(preempt_schedule); EXPORT_SYMBOL(preempt_schedule); #ifdef CONFIG_PREEMPT_DYNAMIC -#ifndef preempt_schedule_dynamic_enabled -#define preempt_schedule_dynamic_enabled preempt_schedule -#define preempt_schedule_dynamic_disabled NULL -#endif -DEFINE_STATIC_CALL(preempt_schedule, preempt_schedule_dynamic_enabled); +DEFINE_STATIC_CALL(preempt_schedule, __preempt_schedule_func); EXPORT_STATIC_CALL_TRAMP(preempt_schedule); #endif @@ -6954,11 +6950,7 @@ asmlinkage __visible void __sched notrace preempt_schedule_notrace(void) EXPORT_SYMBOL_GPL(preempt_schedule_notrace); #ifdef CONFIG_PREEMPT_DYNAMIC -#ifndef preempt_schedule_notrace_dynamic_enabled -#define preempt_schedule_notrace_dynamic_enabled preempt_schedule_notrace -#define preempt_schedule_notrace_dynamic_disabled NULL -#endif -DEFINE_STATIC_CALL(preempt_schedule_notrace, preempt_schedule_notrace_dynamic_enabled); +DEFINE_STATIC_CALL(preempt_schedule_notrace, __preempt_schedule_notrace_func); EXPORT_STATIC_CALL_TRAMP(preempt_schedule_notrace); #endif @@ -8561,13 +8553,9 @@ EXPORT_SYMBOL(__cond_resched); #endif #ifdef CONFIG_PREEMPT_DYNAMIC -#define cond_resched_dynamic_enabled __cond_resched -#define cond_resched_dynamic_disabled ((void *)&__static_call_return0) DEFINE_STATIC_CALL_RET0(cond_resched, __cond_resched); EXPORT_STATIC_CALL_TRAMP(cond_resched); -#define might_resched_dynamic_enabled __cond_resched -#define might_resched_dynamic_disabled ((void *)&__static_call_return0) DEFINE_STATIC_CALL_RET0(might_resched, __cond_resched); EXPORT_STATIC_CALL_TRAMP(might_resched); #endif @@ -8691,46 +8679,43 @@ int sched_dynamic_mode(const char *str) return -EINVAL; } -#define preempt_dynamic_enable(f) static_call_update(f, f##_dynamic_enabled) -#define preempt_dynamic_disable(f) static_call_update(f, f##_dynamic_disabled) - void sched_dynamic_update(int mode) { /* * Avoid {NONE,VOLUNTARY} -> FULL transitions from ever ending up in * the ZERO state, which is invalid. */ - preempt_dynamic_enable(cond_resched); - preempt_dynamic_enable(might_resched); - preempt_dynamic_enable(preempt_schedule); - preempt_dynamic_enable(preempt_schedule_notrace); - preempt_dynamic_enable(irqentry_exit_cond_resched); + static_call_update(cond_resched, __cond_resched); + static_call_update(might_resched, __cond_resched); + static_call_update(preempt_schedule, __preempt_schedule_func); + static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func); + static_call_update(irqentry_exit_cond_resched, irqentry_exit_cond_resched); switch (mode) { case preempt_dynamic_none: - preempt_dynamic_enable(cond_resched); - preempt_dynamic_disable(might_resched); - preempt_dynamic_disable(preempt_schedule); - preempt_dynamic_disable(preempt_schedule_notrace); - preempt_dynamic_disable(irqentry_exit_cond_resched); + static_call_update(cond_resched, __cond_resched); + static_call_update(might_resched, (void *)&__static_call_return0); + static_call_update(preempt_schedule, NULL); + static_call_update(preempt_schedule_notrace, NULL); + static_call_update(irqentry_exit_cond_resched, NULL); pr_info("Dynamic Preempt: none\n"); break; case preempt_dynamic_voluntary: - preempt_dynamic_enable(cond_resched); - preempt_dynamic_enable(might_resched); - preempt_dynamic_disable(preempt_schedule); - preempt_dynamic_disable(preempt_schedule_notrace); - preempt_dynamic_disable(irqentry_exit_cond_resched); + static_call_update(cond_resched, __cond_resched); + static_call_update(might_resched, __cond_resched); + static_call_update(preempt_schedule, NULL); + static_call_update(preempt_schedule_notrace, NULL); + static_call_update(irqentry_exit_cond_resched, NULL); pr_info("Dynamic Preempt: voluntary\n"); break; case preempt_dynamic_full: - preempt_dynamic_disable(cond_resched); - preempt_dynamic_disable(might_resched); - preempt_dynamic_enable(preempt_schedule); - preempt_dynamic_enable(preempt_schedule_notrace); - preempt_dynamic_enable(irqentry_exit_cond_resched); + static_call_update(cond_resched, (void *)&__static_call_return0); + static_call_update(might_resched, (void *)&__static_call_return0); + static_call_update(preempt_schedule, __preempt_schedule_func); + static_call_update(preempt_schedule_notrace, __preempt_schedule_notrace_func); + static_call_update(irqentry_exit_cond_resched, irqentry_exit_cond_resched); pr_info("Dynamic Preempt: full\n"); break; }