Message ID | 20231107215742.363031-17-ankur.a.arora@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 691BFC4167D for <linux-mm@archiver.kernel.org>; Tue, 7 Nov 2023 21:59:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1ED0F8D006C; Tue, 7 Nov 2023 16:59:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 19CF68D0066; Tue, 7 Nov 2023 16:59:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E6CF18D006C; Tue, 7 Nov 2023 16:59:06 -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 D1C2D8D0066 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 16:59:06 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B3EB51A0B2E for <linux-mm@kvack.org>; Tue, 7 Nov 2023 21:59:06 +0000 (UTC) X-FDA: 81432524292.12.BB9826C Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf06.hostedemail.com (Postfix) with ESMTP id 3E81E18000E for <linux-mm@kvack.org>; Tue, 7 Nov 2023 21:59:03 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=qyRZXRWH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=asTwSQyg; spf=pass (imf06.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=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394343; 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=DMUkD8VVua9HrGNysHhMP9T0hjlKGMUGQzHU+hlGhOE=; b=mOvuZt9q+bATwPvoxZWhhetcMyFkjlKXzgmGUs9AmmzcOyKTQ4IURWroAyHxywxpuOddiY xPM72ePGmK71ovyx9cLYnvfIbpBDJVOmk4Fg6g/QkuTAYfPz/hx1flkyBlaejvyEljPBn8 0JQaFmi7ovO0FvRPOFjw87YQkK5nxmM= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=qyRZXRWH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=asTwSQyg; spf=pass (imf06.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=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394343; a=rsa-sha256; cv=pass; b=XxDHfDpAKfUSLJ9vOsnUzHt+hm8XhOxtRqjmmVIZSE2gEXvMGIH+CKR2VjxZchRJxV5b2g 43ZXTTBpdQNCXYIDt2+wHDAwiGBEf2MDEf9AL9vsghl3tlUJipEkOXDKuBLZMdDXYbCOxD GL09tWILh2RHcuefYCvM3ZeAZSJ5Sao= Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJWLU005429; Tue, 7 Nov 2023 21:58:39 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=DMUkD8VVua9HrGNysHhMP9T0hjlKGMUGQzHU+hlGhOE=; b=qyRZXRWHvTTLS+Fm5Nq5s7ieBWX7syqEBPj8kqoJR+uVHnxyWNncKr+w2MiUh+ohqEFH 5hT6MAg1WZ1zUOXdbcAwzHov5M4mMTyg4V853JGRw3kyxPDih1HydZyDxbKi7/HYcxwW 3z8jkHrcMAQp/kxHLDiM4Cg5H2h3MSwgPBZQjM4A5fD7ArGZsi6qoFvim69zjI6y3ixn r3bDUBisLRMTggUZ/NRaJJzOyNoCm49ZoJWv6Oe2XLWjDQpXY/3LyWxQnrCLbvYjbBxM GQQ0ZGBeUxetsf5i6DzwUbgFwQsCtVvR5vNkrBcnwYVTkLmsxPjUwZYiKNzcJj2q84+s 9A== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23g2bg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:39 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LIgcT011085; Tue, 7 Nov 2023 21:58:38 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1tshe4-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJX8VRrcL+W6eWEGCEWtM+TJMKKDM7nDsx+ShxnJzUr04TJ9gWKFEQOE4GYU14Ay4/X6xVmsefR7vMNlRj5IKQADVOQ+SDO0GrtTDHl6xZjdYMgW27TGlkHd24GxEkDkTXuuxZKwUgtmhby30ivAg7tICEiEJfOQwV/VjSFWCu4sJqw4iv7RrpsJlAXdaIjGteQItvsUvc3mw9oBuW/o2P28cdh8ypMfx7Fkv6esKIWUMBMHzp8cXllrHc4KUyg7rNfWCgIEK68u7bEzWNXY1athDtn8z/UsCE1KXxCgR8CZk6DBA+T0gb0uSDbOj18uBNq/LFLoyRryFWOMmKfnoQ== 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=DMUkD8VVua9HrGNysHhMP9T0hjlKGMUGQzHU+hlGhOE=; b=LB1eVr4KG4Sglc8GkKhUFPh1cfiPFEBEUlZ1/f0OmDDsTyWPoZXSF42MnOQw/AifwITI/AZSAdMl1eBeDylGyBLVArrTnjCVGtEj9vFU4+0Ar8hQXcvum473Stx2T+TC2+ecy8NPX63gc3+F56GaI5TPDd6+50s9yXRHAtwZ1zbhqSP9fXyOE2eRhgdN9UiJeUlBDZeBNhDeHvE5i07vvCSVlAHRwwhdqfYyd3Ah+WRP/9RV6GGr0xDxemi85Yz+wUo92VxBGn+FIZm5I0sfR5GYuF48qUT5t4rRxae12THlUIlnSnG59wwtKLaSoygt8mKmwz2M0urfK+5kRzGTCQ== 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=DMUkD8VVua9HrGNysHhMP9T0hjlKGMUGQzHU+hlGhOE=; b=asTwSQygVeRTRspwYMVvWq/BYtumq+Spv+ur7q5u+Gx/+/T6DH1EPZO42xMvF07e3DCOep9fujuIaWqu0F8wMIpjQM8W5ozM9fmOpzs/Q5nDg+6r3S3TQgWEs2H5WIqOi11AHgl++40sgkfI6jQ2K9PNpcD1pNvJBqVISEzmxuE= 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:31 +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:31 +0000 From: Ankur Arora <ankur.a.arora@oracle.com> 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 <ankur.a.arora@oracle.com> Subject: [RFC PATCH 16/86] Revert "sched: Provide Kconfig support for default dynamic preempt mode" Date: Tue, 7 Nov 2023 13:57:02 -0800 Message-Id: <20231107215742.363031-17-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW2PR16CA0013.namprd16.prod.outlook.com (2603:10b6:907::26) 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: 96208147-3296-4164-6a63-08dbdfdcae77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z0/MRD51v/l+y5uSj8FZ2rSmnTZEiHVtLhITct+CXCKwpdH2BZ+5NCvAc2Cs09ulxx+ZZyLr7esL5ru0WQtIEgaK+yqwb536W/AjyCEA2H0pL7u2ifXa2Lfw5mkKMijfqADTZd3OCxRsxFai3qLfzixYkQ6lys2zrFEVupDC3C+8BQLqXM6F3gPRLbx9OOR5/mob59CLxfCKJgtCli0BHDFJlqQ8YlDjRb04cJX9jRw9oDH5+QSfN3u05lPup1ydFL0lbv2SYtqo1Essijp39W6AktJjQ3qhSLSeD9yhNMN8Ob1xfIJK4FsYGZ5w2nN4ZufjzbuB0xdacxWxLfm90oVKCh9OULU23BoyLAoJ6L7dd3ZlAZoVKDFLRxisbfqf+ydwI+QMbb3GXdkdRjsArSk//9s3yjtsYaCtbj9EMQZXrX9ycWqE4qwGBGwpmwXPMyY9ppNofoWabylUTpSXavflOcdfbzOfOtUlSo49fULRcVxj77NNY3PqzGUMlhIyRycmlcJNrZE844lvBDLVz0ENzjdui04FjOZLAxYuud2Q65QR+JawYnBgwYD5PVMk 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: bQ7dIqe1oIA0gFNEebTCYB8JpT/rB/GRsrmcVLlXoBsvMWTw61gVUQp3NuHzXWuN11Db65+k6dWksrZdJjGKBJTZsFjwndcFYXiodWZ9TKl2zDLwrmnxPtNzW8SUhjmZAv74Rq4mXNFGnDuVz1n/NL0HJPaUgyozzXwDn354Jbf9+ADKvlMuT2aN3VIuUz46R9cvLtc8mDzAeM5ITY9S9Sll3fFPuJcXMck0GMF1TRoJERAetSSotvc768GDl36g/TvnK3N1ixduy/VtzW9K1jKnRcOH3CWTEMiHj239fv/Bm157laOsvVgxY3RXdqb5OQ2LIoTDHGRoCkyQM8hxuoRUdNu4r4F532MxKyjY85eywyc5pzhhY6/zrRs3e10az4iTZ9cKDbpy3Pott2bTnJKRN+Ig2QBLIt8AfBAywgeToVepaDvOCOom0bbXA5z4wDuj/fpCE7LuEB5gWJalAS0sBzoKb+rMG2kdFBiJn6CawozgbqeA7dckk8B2eGtc0u6j+IXJThj1C/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YMPFV24MtQwYVR90W0XuMdo8oSsK/Zughusv/6+RXmnd/uSNNKcNf/GSWyw+UKfA19bzANiL32yhY87t48QV/mmHR18gH4wpJW24SuHz5gKWMVPC/HLGdz0E3YJZVxLXTlyK6G6vPdGYOe+HB9T+IDWbW4ELqhcO7tbmAX9MPJfkgouIdymAa6TQXFD2lN8qkuPPXKG2J+wF7TmTmoRUSrPwaIleGgYLqiIrh/9FumHhzSFcpyhnEfhg9NfFjsf15/hGVA4ZiacUJ82Zn+HMbQGhGPq1FYuOETAzPdMNVj5nNnq6D3ohQNuazpusI+TsPEmOz8cPG8ey97Ch2dYNaYvMHrcJBvDwsGKv6zfmeCa833yTXzzD/1UaGmhpNJ659afBo0FxMcvToE2BA5om2XKBlxy1xm9JjN1lOSQazTlivhQBQ1fdHYv/8P7B/LFOoeRN5zYEt2zdgVm9U6MeZURJ36ko6I2f6sZHImp0HatlhBxsK4dQWTEak/IrbECM9O5PP7p1UYw0nhJOhhnLBx5AFXa9BxBVW8w802EOZbX9C4siTcdQo0v7CClqnKJVfRzuT0NqZzbons735Fx+LxcQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96208147-3296-4164-6a63-08dbdfdcae77 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:31.7229 (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: 4gweT+sutDhTI5suVpMtzPOIwgOxjk3vA78Y2NI71kD7jjkZm44ViDzIeFGrtvk6PGKZv0QiS6x7h30WbKIL3avoDn4cPvNgOvcpP3omdj0= 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 spamscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-GUID: E60aNi2XA_0laaOBTAOdJZY9WD7M2H7r X-Proofpoint-ORIG-GUID: E60aNi2XA_0laaOBTAOdJZY9WD7M2H7r X-Rspamd-Queue-Id: 3E81E18000E X-Rspam-User: X-Stat-Signature: 1ccqce1aj3663uz9idxmj5gobwpfweac X-Rspamd-Server: rspam01 X-HE-Tag: 1699394343-676229 X-HE-Meta: U2FsdGVkX18+8wriaJTi7pO9av/lIhvQt70Rfhz5Mf1mp9mVUOYFuqvIYW4I1pbNSnIsBcRwb7EYEYtGPnVBGbdI0zCJMNKLE5oIG44P7q7AorQMQsVJmgjoKcsvAqk2KV8gmh+Ko4Gmdh+jA7D9oewjKPXBkrfCX4Bfe0lJnEHPBl0HdHDeXfQEOpT/3e9+OvvFfDuCCqpo0wgvwJ6afHdWu389w4nC1w6EDZCSfgZNW0lPoD66uezUQPXhM7F+nzszeoLiMh6Bs7ahvlQZi1gbG/gfmleQGjBDW14daWQcHUph/5t42SMrOI1hVfXMu0bWjihp0BVwU+FNuN7OkgDQV9rsHjB0ieqSwX9wuIgumiOYJtzyEVN6J4mpPXPCQh08JplXjg5Mi7RHF+BSVcQl5KWX2my25QvjtwhXViPXszJkAzaqdcyvKNd1C/bHGFUKoLxaQ1xc4U3SCQWmeVOR8PNlmWm9tg4p+gwn7ifAeLtSyKDRgt8LtKw0X/ehPnych1pA6dpsYdNyNfAU1uoisEPnf7BGsY5czFtrWL1PLjlDF2UfRH0YI/vKCcSz8jB1q+lpNmaP+/jdOmDj224Japf80U0Q0+E/4RIBsFp3xC80Yz2PHj+0WMtKnoPe9utbmTxaeW514sqsIP7MBCoMFGWZASc6Lh+ya3ASVh+89mkvb7+G2LvkmMukOfifTmUBJTWXXs2h2aSi+oPONMLAF6Rdw0N+gTEn6zKmZAIKEPUY9sk388/IAsYI78OSYrnKNKXg1Zpr6NsKomfm8KlcCwDFadB6rLTTaYff6UgXUcL505TxWp5JI9B3+ogLKzrwR35Vfv3tJpwgc3Jopmu3VnMt+hpJ8wpb1W7uy+5NOMzY9RjqLBT9uW6dKtsKzvfia1zieD27NDQdP5+EW0Y38UtINoqPzn0LKDHkdIQV+O77wlzF2ycVW/QCWz5I+S2PWbKqQtpksdaAVpY 3vzUEn6m ZaGYIi3Xf2TBWoXStIIanfIq1U00UiXTIOEk6EPCD0D7ILf0KdjYG3f2YyESJYgY7dF/C8KCDCfb+PE2BQICz5BEjv4PYjvtSxpmY/KQPZ55qeLYgy2lQaXQpECM8GuTFtP7gmhhX/d190/DO3PQSttkLFdn7w9hJbHGdkorxaaFgTA0B5bf+oxOeNy7TRL7/zoidv/s21ODa9Mnng7vKroV355yWkeuyPNar9gor2YErCYw8B0Vqai/dlsN2uM4EJSwoLkRQPI2fK7silmVQ5O4ANVtun8OS/Zw9JpyzPp0sySc0UUl2/P5hiZ5ehVgxFXpiiF2YiLoBsluu1pWAtG//aInPvSuKP+kgL8kpqIu+d+PAUoChsvxyoOLQDqAh1Rwm 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Make the kernel preemptible
|
expand
|
diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index 60f1bfc3c7b2..5876e30c5740 100644 --- a/kernel/Kconfig.preempt +++ b/kernel/Kconfig.preempt @@ -2,11 +2,10 @@ choice prompt "Preemption Model" - default PREEMPT_NONE_BEHAVIOUR + default PREEMPT_NONE -config PREEMPT_NONE_BEHAVIOUR +config PREEMPT_NONE bool "No Forced Preemption (Server)" - select PREEMPT_NONE if !PREEMPT_DYNAMIC help This is the traditional Linux preemption model, geared towards throughput. It will still provide good latencies most of the @@ -18,10 +17,9 @@ config PREEMPT_NONE_BEHAVIOUR raw processing power of the kernel, irrespective of scheduling latencies. -config PREEMPT_VOLUNTARY_BEHAVIOUR +config PREEMPT_VOLUNTARY bool "Voluntary Kernel Preemption (Desktop)" depends on !ARCH_NO_PREEMPT - select PREEMPT_VOLUNTARY if !PREEMPT_DYNAMIC help This option reduces the latency of the kernel by adding more "explicit preemption points" to the kernel code. These new @@ -37,10 +35,12 @@ config PREEMPT_VOLUNTARY_BEHAVIOUR Select this if you are building a kernel for a desktop system. -config PREEMPT_BEHAVIOUR +config PREEMPT bool "Preemptible Kernel (Low-Latency Desktop)" depends on !ARCH_NO_PREEMPT - select PREEMPT + select PREEMPTION + select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK + select PREEMPT_DYNAMIC if HAVE_PREEMPT_DYNAMIC help This option reduces the latency of the kernel by making all kernel code (that is not executing in a critical section) @@ -58,7 +58,7 @@ config PREEMPT_BEHAVIOUR config PREEMPT_RT bool "Fully Preemptible Kernel (Real-Time)" - depends on EXPERT && ARCH_SUPPORTS_RT && !PREEMPT_DYNAMIC + depends on EXPERT && ARCH_SUPPORTS_RT select PREEMPTION help This option turns the kernel into a real-time kernel by replacing @@ -75,17 +75,6 @@ config PREEMPT_RT endchoice -config PREEMPT_NONE - bool - -config PREEMPT_VOLUNTARY - bool - -config PREEMPT - bool - select PREEMPTION - select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK - config PREEMPT_COUNT bool @@ -94,10 +83,7 @@ config PREEMPTION select PREEMPT_COUNT config PREEMPT_DYNAMIC - bool "Preemption behaviour defined on boot" - depends on HAVE_PREEMPT_DYNAMIC - select PREEMPT - default y + bool help This option allows to define the preemption model on the kernel command line parameter and thus override the default preemption diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d3828d90bf84..12f255e038ed 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6991,13 +6991,12 @@ EXPORT_STATIC_CALL_TRAMP(preempt_schedule_notrace); */ enum { - preempt_dynamic_undefined = -1, - preempt_dynamic_none, + preempt_dynamic_none = 0, preempt_dynamic_voluntary, preempt_dynamic_full, }; -int preempt_dynamic_mode = preempt_dynamic_undefined; +int preempt_dynamic_mode = preempt_dynamic_full; int sched_dynamic_mode(const char *str) { @@ -7070,27 +7069,7 @@ static int __init setup_preempt_mode(char *str) } __setup("preempt=", setup_preempt_mode); -static void __init preempt_dynamic_init(void) -{ - if (preempt_dynamic_mode == preempt_dynamic_undefined) { - if (IS_ENABLED(CONFIG_PREEMPT_NONE_BEHAVIOUR)) { - sched_dynamic_update(preempt_dynamic_none); - } else if (IS_ENABLED(CONFIG_PREEMPT_VOLUNTARY_BEHAVIOUR)) { - sched_dynamic_update(preempt_dynamic_voluntary); - } else { - /* Default static call setting, nothing to do */ - WARN_ON_ONCE(!IS_ENABLED(CONFIG_PREEMPT_BEHAVIOUR)); - preempt_dynamic_mode = preempt_dynamic_full; - pr_info("Dynamic Preempt: full\n"); - } - } -} - -#else /* !CONFIG_PREEMPT_DYNAMIC */ - -static inline void preempt_dynamic_init(void) { } - -#endif /* #ifdef CONFIG_PREEMPT_DYNAMIC */ +#endif /* CONFIG_PREEMPT_DYNAMIC */ /* * This is the entry point to schedule() from kernel preemption @@ -9966,8 +9945,6 @@ void __init sched_init(void) init_uclamp(); - preempt_dynamic_init(); - scheduler_running = 1; }
This reverts commit c597bfddc9e9e8a63817252b67c3ca0e544ace26. Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- kernel/Kconfig.preempt | 32 +++++++++----------------------- kernel/sched/core.c | 29 +++-------------------------- 2 files changed, 12 insertions(+), 49 deletions(-)