From patchwork Tue Nov 7 21:57:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449380 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 DB02BC4332F for ; Tue, 7 Nov 2023 21:59:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8313F8D006A; Tue, 7 Nov 2023 16:59:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7B75D8D0066; Tue, 7 Nov 2023 16:59:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 56CEC8D006A; Tue, 7 Nov 2023 16:59:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 41E9D8D0066 for ; Tue, 7 Nov 2023 16:59:03 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 17C6C40B41 for ; Tue, 7 Nov 2023 21:59:03 +0000 (UTC) X-FDA: 81432524166.15.C0A4650 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf24.hostedemail.com (Postfix) with ESMTP id B928618000E for ; Tue, 7 Nov 2023 21:58:59 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ZDOclOr4; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=yVbV1gaO; spf=pass (imf24.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.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=1699394339; 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=BBDmbv6t4bIOhWhjzk0+j/+zRLSLKl8O3zxrtXMpl2w=; b=UzAgvG/AjSMyCaAhWAQy3wG2KMFhXqddjcLqGtryVPNjbExVc4Qc0JlrZUraUhuj2qoj2C qC4xRtXeebgNqCaWbSknDP0ZwxLZPCC2/s2B0Yc3jxc/+sm0DG+jmONC0tKyrRs0pIV4v1 3IXaC6fhBldjG1YAON4Ai3SDD0P1yQg= ARC-Authentication-Results: i=2; imf24.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ZDOclOr4; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=yVbV1gaO; spf=pass (imf24.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.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=1699394339; a=rsa-sha256; cv=pass; b=hrD/7C/uelhugVQj/wwuMeRLhw+6Wvg63tzIFeGkkmHTLAozGEc8PmrfHnRdrw0PbtWhKw IRQAnJ+85yo01JfseO6GUxJg9dR5+WuJWwdP+v9/xQ9ZxYDXm2KD87gQOyUHxeJ3L7uBMv yX8glAH5bRiit3LPAH2bX/MCMsqB6sY= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJxhu005003; Tue, 7 Nov 2023 21:58:38 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=BBDmbv6t4bIOhWhjzk0+j/+zRLSLKl8O3zxrtXMpl2w=; b=ZDOclOr4G2PrWZ6+HxqGb70r5MHoymMHcmX8wHc47Iv+SvpKiHBEfsBU861rFb0zfxDm Bp0F3eT3rce7qGohEpobkd0vN0zj6JVe/kjKaIZKwWGNLxGFCdNA08jBv9w0RmeLDHxU 7buWOMYaHYjuJ49HnN1ULyqitNAw95MPsqq2dnaT1+GzRMqQQywaFjjcL12XPhIP/tn6 +5v5rucYVDi9IgVOt/HlQ0KgNCOLOQEiB2RYdC1V8fZo+plehErRUm8TkD5XzQNbPJdo 21XDwC+k4HWJHvmJsneisc/GMWv35oTJzNQsus2vzKPKt+FUzPTe5KYbGyGkyZaPAO5c ZQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w22g2ka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:38 +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 3A7LIgcS011085; Tue, 7 Nov 2023 21:58:37 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-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DYTitQ4jqh/i5JJX0EPXgQ0BT6LWg9OOutFla5ja7+Vcy1m048wtu0wt6wdfUWwWrLNS3CQQg1EFACpNRi5JKi9R5TVf4Jx3YUAKJ0rX2Gd1fG8xdGfIQpiUYmDo1Idx8DRg8Ha7UpPI017N/ptHCWelPMjfVkcS4VC8srj0Dv39nYs8xpllfTSog2yGDs8mKKCSNEkZPifq1Ia5rhO9LCZedRNccfN9xOdguDykpz7iile4khqJ+TsV/Js03jxDQmfMKBsC6vkV2T2+wAE8oNLAZMahKs4k9dYj9k6WTrvr7MGqq9uz5CYD1k6R9hZm0Z3B1u4sP83GNI6k0qMYgQ== 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=BBDmbv6t4bIOhWhjzk0+j/+zRLSLKl8O3zxrtXMpl2w=; b=bTLMMds55AaXrlK1fC7aeAZFWiqK2iR3rBonf3NgKQY5AlMZOnuFrKeAXNDEUqIAYApqvuO5hbYmXlxMMIkQ3WlOPofJ2KbOq1Pq+e7Gc6PhWDeyNg3KdM4yJU7mpQhlznuzDnDKCfl2NPOZpv4+z48qoHso0uIGe2S6famRYGnqOqEd5MSjYLeXf131EjKu8+i8oB4wEEy1sY/5pioO2y6wDRd9NLdN+3VtWkk4SLiKD5CWXE7scGA7hhoCWobUYxh0VvZq52dL2iQ6CaXXB/MACqCLGJSaWrkgrFM65bsh8oXmwOFDk4sCUWcOgEG/J5kzzkdiFgOKd5AGiigspQ== 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=BBDmbv6t4bIOhWhjzk0+j/+zRLSLKl8O3zxrtXMpl2w=; b=yVbV1gaOJmgux4lmQf9yMhbmLpOWWj/o5q1CVvjFjKoB1rPmt08jQpFwwibKT1Yk8VUepsNB8+TPrKOuGxE+JjCopafimCqvXO8cQyYJAx6rEANA8wBaJf1Tr+ohNKURGaBd2FvWlEAURxN8zu1YvIvH6pQr65jGFmklvqKq0pM= 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:29 +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:29 +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 15/86] Revert "preempt: Restore preemption model selection configs" Date: Tue, 7 Nov 2023 13:57:01 -0800 Message-Id: <20231107215742.363031-16-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: MW4PR04CA0031.namprd04.prod.outlook.com (2603:10b6:303:6a::6) 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: f01641a2-ede1-46cb-e880-08dbdfdcad56 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kCgrjoYkbWxj3GPOynMkL+z5Yh/VD3qrQqGM6KzOI/1GSsUv8ywVISCHEf4Ie7ChOOkI4Fn3bOFJ/4H3B5Fy5CpfsbqGK6F93/cNYxhOJgfZCQqddhW3IC7tsntvUuy/RkxSEQM7yP9oFp2UAPqVJXer4Yq1KXE5StDrpzVZo9Uc7m/KjZZclzM97OR1l6bUH4UvGp7ktjhxlo2SPXx1IAb+3PA1VYWO3K8erHdnMIrPHCfx8Zw3UjYP6GcIuPbvr6mCTZ8fo592+NBG7lJufL4khuRYqZIk+5eKHu9dn50e/fGS43UdP2ehGKNIL/8v8SqirP2gMR3PZVM6qFO34kcw0K/ldmw3SSzMzTXsODdqcKja7c8POH3aR35HHh4fvFei40wNE8RlO21/7UrCaUYlKmApXt0UT3vImzZAIHepY6Stm8LgUgzNVZDlpMWAzuPypsjNlDAmi4d2wmLDM5h24AA9axNDJiT3j/kBbRNDh8c4wr34D/eb1ZH+6MqoUBGR8YDI9B3iMe1t2NVljilxtYnuNdKc7VA+Hn1T7qX3DK6G9WrDbdsEd3xXEMgf 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: psFjpO4w1m1a/bNaO2laBdNnimFtNZgoOw/MaX3BJIgM1BJ+ZRl2YFu32/M5N4dJI30U53bYA2uvL6VgF/+4Jsm3FohKcSk3ns4He58KNTXlHBEhFZTXuGAlcrlaIhgH85fHoRoNPFyTYca9jYOb49mMP4JUGJu+0Kb4rg7w3NSMrfvwVxfKQhRghVYHnhbBmUM9T45YBdjj2vXU8+0ha9h1dSJAJaCIfGJoBH/NOZailPlOhJjUrhl6T/tNkEz7eFYWUpN7X/h28fXghg4OnpyYrRBtwiHoGacXtGHm2nLMDzc66miz+JAdbo334LCK6aUCp8Nq067jma2Ve6zYJAUYZRiRYthugfDA3dtBeLSDQIX3i0hkTdr5PGvHHtvEivctP8nDjBVqyDN/QWm6AbAkKx6noRgNrxBoZRwGn2lziobyFLfPbqREnBuYOIuKvApPs7GHuQlGtrPB5tTRaMuqQS3M3t1QEFJOcqy4pJd0Es1CNxFDkxyM2BM87/RC/rJ1ovczdtHJZdKa8qom56nKJC+WAC25Ne6Q8lAMJCp1w897lD8ivJCE1HRJ2JPa+0jclyqq1HDBgM8vKm9D0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J9VuVyAQWj5324ZaNsOOVLNXxlBusuEbw5tf5FD50skRXADVxqLXjHuT5jR2WXTVFUDGwyRIjXDoqJFnbcXg2jQHLevpH/dmLQJOKvK8O7QxnZr8uuVPuxF5Xshldt5xmi9uTOvheluTLr9NkqEITIrW50hsCRb7/Ci3sXZOKZno09dqk2mdr5pIL3kNMDIKIEr8DnmES0RXB92e92Ck7iOLl/e9vuWFnj+nTmx+aQAhMByeea3HUMzAGeUtezGcO87+QCA297uIOvAi5/7Akzzyr3EjSvWIBFm9uh6ry5XaY3U1tRGAHMf4vVwi5iDm4KmEa9pRz7JqJrpgXiDqtK2lmL+C/9oyFqsZtm9HMhA98axKfhknfT/vHYhC5vB6egqygjWVJ6hMJvrpxVCZrwmBKhhZcC+JAZuxooTCf3drlOfnF5ilYdFpI6ag7G013jiPm9+y+nzq9rMiOAPHsDHuHwlXqvTImBvxbQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f01641a2-ede1-46cb-e880-08dbdfdcad56 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:29.8342 (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: JnHjJw03vGLBWIKe5HufAIncZPIGe6WiVr1HYW0OWnGNL7fCpD8EORTsnKkwed+Xw9dMM+Pb4ektAO9aZcZHHRjsNvjVjFZGkeZ0KDxqD04= 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-ORIG-GUID: QVLbm3B3XtOlNYjRz8o8pn3FUJovaFGh X-Proofpoint-GUID: QVLbm3B3XtOlNYjRz8o8pn3FUJovaFGh X-Rspamd-Queue-Id: B928618000E X-Rspam-User: X-Stat-Signature: bnac7koi4ko3jwx3h4r164tdehnkeatb X-Rspamd-Server: rspam01 X-HE-Tag: 1699394339-545215 X-HE-Meta: U2FsdGVkX199MaIAnaY3kpzpxA1pHgHB28HckUE7nUnmtcVtUkqMI1drvzXU1NVdA6/Bky6Np6M4n2ytEmdQAtd27t5lCrQkaT7J+sZs1THTXnSfAaTv1wCT1J1q0fne4RbYIkrZVUT0L+nT47F/ov0GrVeVrgstdIFGpsQJpNjFA5up2524/g1ouFJzeX0eVQmK4VfZ3HPb8TEI70sOTOKy8GxncrCk+AazcgAttN9CfCCMZaaTwDcR00hcdsa4m6ru9QjBWBQFkqBkFoAbsGDeyscN0c0D029ggqvxz45dCw5u2dNwvZvg62N5uBWLXJZRDa7M7b1rJZp4tnb+smbTbWfEoIgla8IOnq5dhtV1W3kpiVImX1irIhrZcCa4RuuBagLOU71fU1PRl/fceyE1qrW7wssPna6wxNoHbyP6mzao6WjK1xK7LaekaJL6mrw4y/UgVIsIxvXIiAL9KI/65d22NoFGMjq8TFm/txlUIi4A7DG6u+XqiSpUM5xwQZU1inQ4LI5vMCb4pWuB8CSkP3TXdz3qUvTRIa7HCIEtXUmkmCeTjVL7EMVHTJJ0AjK9F1pdtsx/pcHtw9jvbGzpcubr5rISdj3w1bbOPiFbQrdpdPP5BLzca+Jnk7TOqnoZW0G3BaSZDrUIa+sxvz/+dAMuw4QP8GKUm62Gv3gy5CFdXWpFgkeFGwao8Xo+l4vltKJeeCyCoMSBZGlltaWIqaa8PdrhDSHfJ5upTHBAa7T/t2vxXupuCD5xe0mb36yO7kC5LLkKvGX63hf7ecomGIykoG+ja4Vvv/i2mGOiRcwnbUd6cpHaL/zrFoKGD4JS3tFTc3iMhFn2O2oqV559ft7Gmf/O8qclTuZLMZvYHM7WvvdQ45eP6R+2pofBcidB0MUGFX+IbX9tcu9i3r63a3K+mwZIvFPjAt3rat2+rnPuGlXrPs6vOpfkxilhMgCraJaxQ/Eomk+TARw 9z5JhlSs 3ZHrmI0f2CcJ9hpRnM7kGgSvt19qeMbj/qFAQxj4p4lrCoHkDSYKY2UFvBumwQ1UBjwZq8Z4p00VwljoiXjl1IW8jgKWNJQGwGZUeLvUDkmzoZNWxuNWJM7WF1PsvBLdyjSYGGArsYJfxC7jZvetubDgcw6uLeYMruzqmw3eTs8PnAcyCzLaHm73rQxbqyJDBsXGTWbo3e4d52mZ+x715I5BVhsrjausslkQZtpo9o9YooiA2khpeOaV+pNxLnvg2oZbf0E0lT1dJzTCYN8RAq/j354qkLjL0FoEm/WWJR6D/IiwA6Gjc0h8bJ+vvpBQ7e051ZVt53g+LMyasd+GKrE8phmGyUKeLAZJPtXKqaiScKoGxJX9285Fsy6Sj1zzhqH2ANrPNBjvl1IFlFoGSTQB86t05qdZEnreu 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 is a partial revert of commit a8b76910e465d718effce0cad306a21fa4f3526b. There have been some structural changes to init/Makefile so we leave it be. Signed-off-by: Ankur Arora --- include/linux/kernel.h | 2 +- include/linux/vermagic.h | 2 +- kernel/Kconfig.preempt | 42 ++++++++++++++++++++-------------------- kernel/sched/core.c | 6 +++--- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index cdce553479b4..b9121007fd0b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -96,7 +96,7 @@ struct completion; struct user; -#ifdef CONFIG_PREEMPT_VOLUNTARY_BUILD +#ifdef CONFIG_PREEMPT_VOLUNTARY extern int __cond_resched(void); # define might_resched() __cond_resched() diff --git a/include/linux/vermagic.h b/include/linux/vermagic.h index a54046bf37e5..e710e3762c52 100644 --- a/include/linux/vermagic.h +++ b/include/linux/vermagic.h @@ -15,7 +15,7 @@ #else #define MODULE_VERMAGIC_SMP "" #endif -#ifdef CONFIG_PREEMPT_BUILD +#ifdef CONFIG_PREEMPT #define MODULE_VERMAGIC_PREEMPT "preempt " #elif defined(CONFIG_PREEMPT_RT) #define MODULE_VERMAGIC_PREEMPT "preempt_rt " diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index ce77f0265660..60f1bfc3c7b2 100644 --- a/kernel/Kconfig.preempt +++ b/kernel/Kconfig.preempt @@ -1,23 +1,12 @@ # SPDX-License-Identifier: GPL-2.0-only -config PREEMPT_NONE_BUILD - bool - -config PREEMPT_VOLUNTARY_BUILD - bool - -config PREEMPT_BUILD - bool - select PREEMPTION - select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK - choice prompt "Preemption Model" - default PREEMPT_NONE + default PREEMPT_NONE_BEHAVIOUR -config PREEMPT_NONE +config PREEMPT_NONE_BEHAVIOUR bool "No Forced Preemption (Server)" - select PREEMPT_NONE_BUILD if !PREEMPT_DYNAMIC + 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 @@ -29,10 +18,10 @@ config PREEMPT_NONE raw processing power of the kernel, irrespective of scheduling latencies. -config PREEMPT_VOLUNTARY +config PREEMPT_VOLUNTARY_BEHAVIOUR bool "Voluntary Kernel Preemption (Desktop)" depends on !ARCH_NO_PREEMPT - select PREEMPT_VOLUNTARY_BUILD if !PREEMPT_DYNAMIC + 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 @@ -48,10 +37,10 @@ config PREEMPT_VOLUNTARY Select this if you are building a kernel for a desktop system. -config PREEMPT +config PREEMPT_BEHAVIOUR bool "Preemptible Kernel (Low-Latency Desktop)" depends on !ARCH_NO_PREEMPT - select PREEMPT_BUILD + select PREEMPT help This option reduces the latency of the kernel by making all kernel code (that is not executing in a critical section) @@ -69,7 +58,7 @@ config PREEMPT config PREEMPT_RT bool "Fully Preemptible Kernel (Real-Time)" - depends on EXPERT && ARCH_SUPPORTS_RT + depends on EXPERT && ARCH_SUPPORTS_RT && !PREEMPT_DYNAMIC select PREEMPTION help This option turns the kernel into a real-time kernel by replacing @@ -86,6 +75,17 @@ 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 @@ -95,8 +95,8 @@ config PREEMPTION config PREEMPT_DYNAMIC bool "Preemption behaviour defined on boot" - depends on HAVE_PREEMPT_DYNAMIC && !PREEMPT_RT - select PREEMPT_BUILD + depends on HAVE_PREEMPT_DYNAMIC + select PREEMPT default y help This option allows to define the preemption model on the kernel diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 50e1133cacc9..d3828d90bf84 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7073,13 +7073,13 @@ __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)) { + if (IS_ENABLED(CONFIG_PREEMPT_NONE_BEHAVIOUR)) { sched_dynamic_update(preempt_dynamic_none); - } else if (IS_ENABLED(CONFIG_PREEMPT_VOLUNTARY)) { + } 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)); + WARN_ON_ONCE(!IS_ENABLED(CONFIG_PREEMPT_BEHAVIOUR)); preempt_dynamic_mode = preempt_dynamic_full; pr_info("Dynamic Preempt: full\n"); }