From patchwork Tue Nov 7 21:56:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449367 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 CA190C4167D for ; Tue, 7 Nov 2023 21:58:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 398C88D005D; Tue, 7 Nov 2023 16:58:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 347858D0001; Tue, 7 Nov 2023 16:58:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 199F08D005D; Tue, 7 Nov 2023 16:58:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 0B2F78D0001 for ; Tue, 7 Nov 2023 16:58:47 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D50A91A0B36 for ; Tue, 7 Nov 2023 21:58:46 +0000 (UTC) X-FDA: 81432523452.05.4296D10 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf07.hostedemail.com (Postfix) with ESMTP id 960A140010 for ; Tue, 7 Nov 2023 21:58:43 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=eCzIHvo5; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Ij4C+Tg0; spf=pass (imf07.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394323; 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=wu+VhJ2pO1Rmf+cHLS8LckYKrJRdEsszQoPirKlYAKc=; b=kfL3z/PzDltgUBc9Srzq+SIJGtk5JrDABHS/AudSIaxo5PZ7yjsuUKfZ0FL14hk34qmap9 ThMTzemQv+lpx1+rYAkAhYbBwSRm+G8IvrXsoxERaj2IXgMj8Ao0qqgTSZpvMKmJlc38QX 9yWIpf4JjAyEZq2JSOSIBe46SewWmMY= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394323; a=rsa-sha256; cv=pass; b=sUvfric3g72aRUMhMniwT0x16wh4bABgCYJCmyimXIjQ0Wl1GUgLEgUzmPMonr/2NqUUZE dR5RFJZ1usyZDe1sfdWp1rvixKfnUg9WZgObvhYtdL9Rp3kRqpS9zVRDXxZ//xYxdZrsK0 iKwRRnWUN9uZoJlvB6Nky3rmkEu4HZA= ARC-Authentication-Results: i=2; imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=eCzIHvo5; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Ij4C+Tg0; spf=pass (imf07.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LKCxM023477; Tue, 7 Nov 2023 21:57:50 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=wu+VhJ2pO1Rmf+cHLS8LckYKrJRdEsszQoPirKlYAKc=; b=eCzIHvo5uPpWQ/fdbpt+M2Iyq3FSVYWpIZAW2xlraj7tlxOu7rNDpNeX84L8sw+jM42R +dp8sj6/DFTNmYZ1a+llaYMh6teerNspI+533WjqVOdEWzLFi0vw9nVIf3pOJjPGl0Xr ofFdeR4cLAeQpxEHRxMcQXPShA6xaSAZsiCJWPsMSyFLt2d//mZc/eRvl731O/lrWj71 CJWPu5BLwJXb1pZMqo5CIqX5Nu2qkcRXQSuH/2KuzuZlslyVx7AAqrC82qsmO112Flip JAfdJgNwHlmgUPvisxDpa/w27HO6PNmgtB7b8SQX538lNo7gfJ8BAydea5KY1iOUtyyh lA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w2002ew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:57:50 +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 3A7LJ1HY000739; Tue, 7 Nov 2023 21:57:49 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1wsjd2-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:57:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KXinPCtEgUz3Of4k6r5tsOoGG17bgPKdOKvjuCO0G2n+2+u1QpgBaFr/DnHBV95LgHSBrx0//a+NawfEiIaAZlsUHDGXKbQM4tO4dmyfIDAsJofQtTmSH82yNaFNPNE012Z5LizuK3A33Wl2HQxstGdOu/I9k8t0Dt3bQXjBmbHPsvwuoQMO9XiKElZTm8WxF35yebk5s5GuIF5ZvRd3TKtTHFvEEhttcoROZxCzIQLGIl+dj8LdzRdzMjEpsn52Ebdjw2SR9kkxQ8HmVg9PN23NwrfdrN/TT5cgcYJX7lzonl70y8x/qm4t6NJs+p9AoraZLrpdNgFYXrklhNnxtA== 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=wu+VhJ2pO1Rmf+cHLS8LckYKrJRdEsszQoPirKlYAKc=; b=j8Wv40y+GAkAmlnp6x8f1Vbkz8Ll2K0ekJnBg+8u/yQL//i97ud7KB0wiXekoJxO1WT503ZinIZhpYw2hbqv13HFHpXoIsULFJAPkgUAvOX0cwx1RZDJgCWVtujcSwczahyaU2PlURa3EGOd5xSkwQv8lfaSYto+f1tJD2MnnVulOUBdEpl3gidZfzeT8A57Qq2nR7Y3q6Xbp5bYWWhVXeyB7zEYrYAgJ+kVvlNaCo5mpYy1eZsGUZ9MwsDkpURRnMOpxkjxT62uVDnKfWPE0AXMqgGczwtQFuHLCMrsZW6M4GsCNaIXoO/5W+9zkODVyNdgSqAX03+fPe+Y/624xA== 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=wu+VhJ2pO1Rmf+cHLS8LckYKrJRdEsszQoPirKlYAKc=; b=Ij4C+Tg0/ncO3XleUZKsh43KqzlavLAratDYrl1c/aUUW0J6YcN7oDGBQYCv/ysD0Xy5AqTlYZGJ1cgOnt0JdgrhofohFATyATffSMMzyiXCwOIsKE6TigvwXTu/5Z7ST0WwpFfPg+0YsUP2T0GETP3eIg31pf6VrBkVpR+4hEw= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CYYPR10MB7651.namprd10.prod.outlook.com (2603:10b6:930:bc::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29; Tue, 7 Nov 2023 21:57:46 +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:57:46 +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 01/86] Revert "riscv: support PREEMPT_DYNAMIC with static keys" Date: Tue, 7 Nov 2023 13:56:47 -0800 Message-Id: <20231107215742.363031-2-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: BY3PR05CA0044.namprd05.prod.outlook.com (2603:10b6:a03:39b::19) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CYYPR10MB7651:EE_ X-MS-Office365-Filtering-Correlation-Id: 072ae498-3762-4139-efc1-08dbdfdc935c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g+UYf5igqcXQyAZGxFtkYpvM3kwzH8JqEVue1tcsbyyBW5tWlb+LkKujZWwbhLj0DBFKTKY+QJ6U6apU41F0+wAAVQNmhQuxXBf3kNZ/Ioz6gBiL4oxSZThr+khtHkwthIzlBg0IU2s4zbxZ/scaecV7Xl7TqTtdCsQk4UWPNySDtWTZ6Eh8MIbZQWzYiUyf4K5SReqPrW7BMgBrLzggF70hpiuUWWMqGtva1q5xOx7n7gbnbJ7CjWG1lIdRcXB1Ic2fB0fwgE7t/okzO1TwUWa/YcPplrgKBT57QVE1R03m59KO8xR3LnldQtJwe/paw67hcPnIoM2wSAWdQJs7QZc3BQ5vQ/hstaUa1GKW2o15bFcuKE3vcgoYLO0udH6F/Wazg8mlkhRUN4mRX6PRpP6sA7n305APR1djhSO6IWWGAoJtGb9Pi/W0eyPkfDnQcaOVLb+iwwZ13xNat/MkybmAtLCjHpq5qWIw7xCG2dafrd7J1RIExNz/s8CeqIe4R9dma6U2EzZBN2N8BDHRvvt8BcC2BFBsLsmzdFgqhQP+/qdiJkuEnpElw/nFRzw2 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)(346002)(376002)(366004)(39860400002)(136003)(396003)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(6916009)(41300700001)(66556008)(66946007)(83380400001)(7406005)(7416002)(66476007)(316002)(478600001)(8676002)(6486002)(2906002)(5660300002)(4326008)(8936002)(6506007)(6512007)(26005)(1076003)(38100700002)(2616005)(107886003)(86362001)(103116003)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GB0itXkc6TEWyZXo1N/VEZoYxf+SvDXedFRGElBtIZJ8n+GMpUKgHD5eBScsqPPa6OAwWj29WWU8UOV52SbysbbMk6gbvDbsqtt1L/tr4G/DzZI38sZqMsyb9k7vE7BFY+OuDv02R/sY7mvtLTm2uogC3L+CNAY8VxLK+t34CJYtKb1Xlr+Zv/n94/roAFCDqvmVbVWyl6oJernZRVgr50v7ufBJ93H8RAmpkuLeAL21EOHofTG2kBp/Hk9ayWyOPZJldHXXdH3N182A57H2yVeWeSh4jnOj0kcO1N0uUhDVSIYzh6OnqkkoHoP7N/lDRJeeBoJW/gyxooQn3DgWRZg+XJHpdXKQ0QHx5waagcJjjVfx6/annP1dObcnyPrb3N/s1U8FnFrpKUtyiVGRfFI/kYI4R0AEAMpWqooHfcLtUxTR9m1NgEVwtepRzbMO7ny4xCmYf12NmMB1gxQ3RtPtvswETOn+MjUOANs4SOc8o/9C9YwWFUzWtIVzCuOcyH3nTj/evWZyuvgIVNUbkxXUKMuGAPJZjCxE4yfXbsBMXg1lcrqI8MWEvUgfPV+UHGOOq7sTVyfdd497HHIltTQyM36pK5utiSY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UaXZxwiZZoqnivl73KYQFhHw5Ey866V41gmbFUAOfBGnIStYNJaejJW96ZG1am4kZrUk8mvG7OaxFocbSIp/Gy4fIIWuPrfet7VZoEOfwSI/3TgmwOx5jOQpPT6R+Ae7ma/LOlwv3sJf9sJ25km0QqUGDWGYtkDMHn5oTVk9ax59NdT7J7STQUIHrMhCKlFE+rP7c0ccmgpuGjPVFsJsit6NNkto2VtYqfy+y+1H5LqZ9Co107Pc0IpGNuZ0F7+iTEr6q3rcxcWBVgNGEAXcV+T0ctAaH+8HHmm1h1KCbeH5yxRf1iCmr+h5vPUV4Y7hvCiBLzseYEwIzes5E/bEIhNM2p39j45Q+LTfjaU3F16kmAFeq88uAj2yZOWf4OwODxqjM8vBEb2bt2MWWwNYoe3tMLGMXW6QYZESsqfHZci4tZVriEI8/uYlUO//iPnwOKhkepWnL0ibz9N2Isq9a6HAGw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 072ae498-3762-4139-efc1-08dbdfdc935c 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:57:46.2734 (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: Narz7qXoNeTwFsoprmgVQR/jmB3ec4bAAacGfkxUtsUa0zu1AAH7MOrrpU9fPvKxJpqka1Z4gj9oKfGmrax2IZBuNwzP0vYR9UTBil/nj5g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR10MB7651 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=923 adultscore=0 spamscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070181 X-Proofpoint-ORIG-GUID: XFukDM7U-fr72DKERbj5hlazbtitA6w- X-Proofpoint-GUID: XFukDM7U-fr72DKERbj5hlazbtitA6w- X-Rspamd-Queue-Id: 960A140010 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: bdsqyx51kyd4c3pokd4n5wj7f6m6fqgq X-HE-Tag: 1699394323-34208 X-HE-Meta: U2FsdGVkX1/xLxHRuNWHcWqc11Ruf9BZc685+AharcEHie2k/HeCNpi+IajCBzFf9dJSDX6lhqFZGHopPhbN/2o+YDeIFR6JLMt5aZhKhfIUjkkAmcjCfDkqXoWewkYQKhfahlalOzagKmikEMnWdsPLjT57zC8jhf/7zhaQfB/uepumz8WZXl5Mk2gV31LsmGvFKcACpSpzj1p+jqxRmNE227utVrV90powJP6TwB5uz90HI3HYY82p5rBXRUIalcnCCD4wLcoNyYZLwvaDBxHSIhGwSfTBK+7vlp51iunlwiMK6tamkHfeBpmGnvNf7+7Ignwk8dQPmaxMeY9/8YZUxr1RFIgnPoIkwg5iGke0ffsCKH3pEWQeASdToUtFW2Zy2E6nrUXk2Kwo3yc1MYdo0a3fxY36pKsjblC/7nCRw6GSn3WWTMKO3M529VV7go7otYa7zRiRxV1mK8o9SEbGs7H6UiMeMD/RSlE7fz3FTvMJ2EHS9q8fTZSTA2Mw+A7K0huiP1XoDkAROAbFXpokF7E0Zfe3wR6kBSyLcmlWw13nDSKPXQSbfXeEZieJM+zEjSxhKGlmn0hvS/3nnM2xw80WpHz9xFfSHKMwArPGzBulGxjPfFpcpW6V+NdahD7U7azEiCoXyV9QecIXwa/ymKArwx0E/7FttgF2BRZdvyQYfUuVJ+dAsNfAQdJ7CfL2kemiJCisqXvBMetZACSHQn+Mei7oLf1b5cInrip3VTJnYsxiAyFLf0NNkm4oCv0MU/sOItReGRgR9z0kgZ54EYh5yuc7tLc9PZz9QsO3AJaxNxs3X7lcHWg2crvnrP5m3gjOMqyYZuQ9TiglSoaxntkoBvqxm/qBKjJuclkZAkTzrnwdgRCoG09mTxcpyUIWYMHm9Mk43JpyuBi5vWuXPgHdpnWGVwaGvMqCx7m7VP7NZhvIm7kULzfZqT5rXwPQv/Resjs5c/V5voW ESV7RjM1 UUdYNaCIBZBsMTJq0wl5nE3JooVh5M1VMVIJykdlO3zX/W499uzJVECGXnKWmLaXqB5P9HdIjKzfy9/UKTl1usS9Ch/3XQ3HEScNRzc1O/OsuvarkUSAk8Pv5v3yEdnmTT4t8/U7kuhGdgiK/ASi5MiA+utsZiNMuAgI/6BijULwcZU3/uOXNW6WjDHepw8EmxucStp6GCACSANvvudvXd1EfBQx3LJ2UgVMbZIa92xOMNbfj6ToCDIn6sHgcRe931T9OW+9MuJjbyFF/+ZQyB73uZUrttNArl9cVsWXNm6MrfiwKi7eC3Bs6JT+lxmtGGTt9bFGeyDJL7WyYz2jTM+sazp9nPL+Q5hlvQKPlAAqslKcwK2DrxsJuw6KlIRB06VAk871gGddG+Aub5Bta61CclrphSI2rCLz34gramD++g+Z/vpKqHOxGdC7D8i7x/+c9/1mSiY+Io02pIuGBEjO5+w== 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: As a consequence of making the scheduler responsible for driving voluntary preemption, we can do away with explicit preemption points. This means that most of the CONFIG_PREEMPT_DYNAMIC logic, which uses static calls to switch between varieties of preemption points, can be removed. This reverts commit 4e90d0522a688371402ced1d1958ee7381b81f05. Signed-off-by: Ankur Arora --- arch/riscv/Kconfig | 1 - include/asm-generic/preempt.h | 14 +------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 9c48fecc6719..4003436e6dad 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -134,7 +134,6 @@ config RISCV select HAVE_PERF_REGS select HAVE_PERF_USER_STACK_DUMP select HAVE_POSIX_CPU_TIMERS_TASK_WORK - select HAVE_PREEMPT_DYNAMIC_KEY if !XIP_KERNEL select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_RETHOOK if !XIP_KERNEL select HAVE_RSEQ diff --git a/include/asm-generic/preempt.h b/include/asm-generic/preempt.h index 51f8f3881523..b4d43a4af5f7 100644 --- a/include/asm-generic/preempt.h +++ b/include/asm-generic/preempt.h @@ -80,21 +80,9 @@ static __always_inline bool should_resched(int preempt_offset) #ifdef CONFIG_PREEMPTION extern asmlinkage void preempt_schedule(void); -extern asmlinkage void preempt_schedule_notrace(void); - -#if defined(CONFIG_PREEMPT_DYNAMIC) && defined(CONFIG_HAVE_PREEMPT_DYNAMIC_KEY) - -void dynamic_preempt_schedule(void); -void dynamic_preempt_schedule_notrace(void); -#define __preempt_schedule() dynamic_preempt_schedule() -#define __preempt_schedule_notrace() dynamic_preempt_schedule_notrace() - -#else /* !CONFIG_PREEMPT_DYNAMIC || !CONFIG_HAVE_PREEMPT_DYNAMIC_KEY*/ - #define __preempt_schedule() preempt_schedule() +extern asmlinkage void preempt_schedule_notrace(void); #define __preempt_schedule_notrace() preempt_schedule_notrace() - -#endif /* CONFIG_PREEMPT_DYNAMIC && CONFIG_HAVE_PREEMPT_DYNAMIC_KEY*/ #endif /* CONFIG_PREEMPTION */ #endif /* __ASM_PREEMPT_H */