From patchwork Tue Nov 7 21:56:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449368 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 C848BC4332F for ; Tue, 7 Nov 2023 21:58:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C7FB8D005F; Tue, 7 Nov 2023 16:58:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 878048D0001; 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 6CBC18D005F; Tue, 7 Nov 2023 16:58:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 4E9CC8D005E for ; Tue, 7 Nov 2023 16:58:47 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 18C7F140BC5 for ; Tue, 7 Nov 2023 21:58:47 +0000 (UTC) X-FDA: 81432523494.06.7CEE9F6 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf20.hostedemail.com (Postfix) with ESMTP id ABA531C001D for ; Tue, 7 Nov 2023 21:58:43 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=u0vnlN3R; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=dnKi6ixr; spf=pass (imf20.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.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=ud7w6SeHvr0bpgjfPeosv9sSObd40JxWsANklMjVl8k=; b=XoEQ+O67AYbf8Q+fqP4sipaauUPc29wcYTvHwrz1Hmv28dz7zh/S4zwuzJ/eEow6AOD9Y2 9QuN0hM6tduQqt4/5mH4YTu8A/lYCilb+gqzsMa6oUuvs+bdTyXmBSkqcBN9KoDqbTk9lO X4tsL+pHJgL+fRPNrR2iNP0NsQnHT2A= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394323; a=rsa-sha256; cv=pass; b=BXnkD3DVCCuZSeqqYNCzbUq4Rf8JzZGfxFE5Ol+LNjJRh+oQ3AYDmkhxlklq4ag3ZmpiLn aido1BV0R8rS9Uvsimqj035QzkjxntFl9jW8d8VLuX0V6fVyMNHeFgA7aAXcuiXGupGdTi eFFnStwLf9Mx3DTdIkh1YaKmkPAM2oA= ARC-Authentication-Results: i=2; imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=u0vnlN3R; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=dnKi6ixr; spf=pass (imf20.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.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 (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJmSp000897; Tue, 7 Nov 2023 21:58:19 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=ud7w6SeHvr0bpgjfPeosv9sSObd40JxWsANklMjVl8k=; b=u0vnlN3Rk1TQk92O92Xd1LCuKQsAn/DVUHfFcHQsQAEUHetnIBuTQs82RgVP9ULxgjFF IVXtDh/wOrxCfPDX2FPkeWART4o7RKhJQ/wp6H3Zkt5sNI/cgx5eqZWV8ecG3F5FqS4g Ey3xq/EECmoTJgdDhTnmeIFY/xTNyD99OxrMPW666jdDen6uDRCg7Xr0t0fDVs8uFcIN gR3P9GFbJZM94Uo/fTMvuVmsWQkAhxFZTMOBVlOaJORRVP2GvJOGkcNPUomWTqDgjt2u 6Hyizlfjw6wQraRpXq9aAHn8HuBXtF52nOwspCEpt14BbgSVPneQvSTvC7IJXWlOgNkv wA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23g29u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:18 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LIrHb003903; Tue, 7 Nov 2023 21:58:17 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1vshdn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EDYqQMQzKPnQu+sKrFI/8D+EPVqdoNCVmLEGIV2+D3S6keK+QQOtyNTUi+bbW8M0Uvx346alAPaLERmFMOgFZrrQzBMank68pBy/sJqV4RdcVxOiTECUXjrUnPnTUmhElemm4ov7bfgFWBVktNtKqpNkdLQn25vvnyE+dVtGXHOunaBTtmkWR22Lc7dZEGRl0cPI+52bVlGhcl0XyLAXzwlKrZOTAWENjxxNM1kAVphAyztkJqpfTiX4/yWHR4gIgCctMHvzCAHlgdJ52Aqcj2nAfyuzp/YNGu7ijr874U+4XUoJMC+JkGG25ADaqj/ufk/cp9dEo0P5C2a99mZfoA== 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=ud7w6SeHvr0bpgjfPeosv9sSObd40JxWsANklMjVl8k=; b=arQihQWLgu7V8nQZCGGVIzSsxx0OrdDzy8uDsCGHQZan0pB1h2SSf8P9QfG9MlI+N2C+sQmpuXVXraqvnbLdU5hYRYi+H2FMg9DtHeJC5UT+tdalXeU9jBLbTgsMa+Z019OvRJRqDvoKkg1nfT29Wb5esq7ImNwnQCBvtUeIco4VG9Gj46+sOB9KUqwwawFfl11rml36jXjsEpJtyhcEbel98G6cbXh5Ighqi2O7ETEt5RgShQeAeNVDqhVXQRfIc6f8+OcNmOy1bQVp+SyjtoASeb0XJwd+G2GVIUidtFGzeSDDbe4k2fYJ/0gX39ItkwcW5WnzzwmOoUdsE+6l+g== 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=ud7w6SeHvr0bpgjfPeosv9sSObd40JxWsANklMjVl8k=; b=dnKi6ixrHOIQ3OU7KP4dwZSz7hzobrNPg3umkbHK4q5ZNTNONbux1CkYA1AC2Ury8qaTHhJtNqLiUUrMRTudsncwdwZLAKAV9TrgRmpm218ZcZ7payufD39B75nTrQRdvCBlYCDTSX98UCyriklx9JJsawq3hBlUTWet13kX3uc= 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:55 +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:55 +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 04/86] Revert "preempt/dynamic: Introduce preemption model accessors" Date: Tue, 7 Nov 2023 13:56:50 -0800 Message-Id: <20231107215742.363031-5-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: MW4PR04CA0134.namprd04.prod.outlook.com (2603:10b6:303:84::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: 7160a6d8-4d16-4af4-b47e-08dbdfdc98fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JTATtLLnp8mDZpD0H8Jy3jOgDiXnggOBDsuuP2Yh8PP3zTLkDkUbyXomd7/4u77EPPs+o0rCq8GNVa2HazVr1pcZlRtM3ZPunm0Bew+q/gWkPQYmGTMVNu7/X+OJxfp4BE7zATxCvbJKzRza1UnGfqANStTfvO3EVAXweCSo6NQ0rQUBSSxApkssnTaMizbZSXoYo/xe8sdq72FsmtyEHEhn663Hvk2mxnXeH0ZhC64PBlZahmzh+Jk0A8rekQ5miKxfPBAw/bxjBL9XohMRcLWlzmyy17B6fKhJIQszCykhwh6CL28rLARd09eFwNTLZmBe34QcCm4khrA7tHWdROwozzUPHxdrdaO4ik1SatE3H0Tc6TNHshM0jVmk1dwYkBb3yi+8ujZY7GhPKJKqX6NCDeqkx+kcos+gms9pZpy6LjyzbN74JAhHm7BvqdIE4DFwjFijfgdTcnEaNIrSamFU24XsO7woqqN560tt2WDsp/1s3h8Zc5afJbE+dMBafCDEsBxSRw0sdpXlTF9wh2h6MxPgDWA6lQcByXiWNPNjsDxuL4lXPfeDK13v26Oe 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)(6666004)(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: K+8b93rE1MOmmptATOpLuCrv+nXgp5ja1k4tPjEwpPs+gswX1vPoAHjYLcdcZAAVg3XGjv4RumQ9rBOSIDE4I/oXqtE6+ny8YOwKHbyp3KDtYl0S4vycwzLmK+GG43AWruulJl5MRCw7AlFbjoh8QDzny2gtPsyK5YT2y8C1O2IeozzVOZcSZds6do73LZO6imsDmqzaNlkFC6dWMaA5LD80KqIa2OwZRAQiadf/AqFqMEcohBA7vXothlafETr601bsNXJeFkN89CfJHVRP5WDzrL2FUIHV2tUnY1JRKvBZQKkRr0loBWbDQY5U9kbf+XQTyG5UaIBTOAP6sixKoMmc9Qtu0jpGN1CllJeg0XqPSDKY06zHvKiCazOKIYwsn3IhDAmLj/TzhFGUHQRa5CCM8ovni8D+z7LvATeMVeKROKHsq5CI/qOMhAEgXt0zEYboKIZFf3D8okR/TKiZMm9Z6MfkuWGXhMCl821m9TrR1AUAPwmM8wsk4MVyg6v6kY6bJXWrynhSVmTAzF4a93GP0V2O6RyZmirj0v1qo1pzuxroWcmoUgEh/ORg+lz1K24/nN+Cfo/Hex+3Nw87p/dCqKedncg259PONRUUuFmDjuwAR/wVJf+5tSTzNHFY0X2T156Nim/6JQxcjFJZ/6WfGSqX3TXPRiy3CpWK4im3xazjnhEo1KAseDahsIyF2U68I1EX8LzN1O4FaIe3ly9QX8h+OYIp89ytU0GIDwVZ83vADAviqAOviPbIA92LLh6VzipKlQy2++25cygrBxHD5AyIb09AyGReArOxAFfHVSznH7x+LsJt16IzcNW26asdWo1IGsYx7SMEbhQbdNqedMdrd4MyeKCpFY9DFoCeQqL2vqk505i9MJtmeUvx97ay4ATmsYT7Mgm4pQZfbn0QERRMiRPCRGI52/0C9xNeilSRKbBXvEI8dOW4jWPMT5099THXrpqID66Kk9/5JlWW/ofT921CYKWYG5uafpIFEVYqhuAbuK36iJhYhTgowocEoSjWEBGtF0f18eabk0Vr/7EVgGZyDK0iagfS3CjkMcYlcSBA5JgnvR0HPnjuMMYF0rX2jR1UcnqAroiLOO387Ysp1ulkIlQpNwUXc0AzET+6mufl3Vs2rqQuOHXDIX/pQtYk3jrGjImP1GFIK/r4IHkXkpDVR9Dj1nf6TWBKfeailE7uuDFyOk1g4huA4DW2YP6WqNcSG5Msmfh056qY4bzeLhFtoLrXohPDc8GGiPj7NKxVwNJ3VUBOUYyA1M2SjGHK6K3IfArI4gR13LjtFCUlJX/2OLSesH2Z/MuIW0/szgFMQxvSF+lMm275L9/58FwgJ4JRCqEU1DRI+9iReahGIAcccECDDvvv+wdeBQRsPxnhmE32xJ28G9pJfd1Cdjfz8ys1qdN40EdoW/w3NuGuXUaqHY7fsiIsla9JnXEE9jPsSAlvD7frkT9XHAdTDzRQhQIRX2sYGp8o6Ng5a2+43sKrCrYwAurva8k7xXmfUSno0OYKcXLpsplfVisRT27HcPYjw1sn+7wtPL2/zcE1Jlc1QtoyntV9gYSQJiWlcMc0MC+b01TsIvpluMTS8Or7kd0Rolor70WjGw== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: x7fNS6KN560B8ftquUbVxUST9D1tqkt3+XWHm3glO4jDB1AjeRp6AwLuvD6+lN/+TwveSLWk4TQ6o5nYGP2bX54rvTKNhMMsYO3+4omIZ3hGvwbLxDoU2qbRCSc1YRULfb8eo3GxDwtEhSyQu7sOcGv9jcoEuFzcMHXoQZmmj5HPBcabqw60oqcQoBt2p8QqNNnB4f4HKh6kqr1+RDqptuyuVRAMiEaL1f4X6h2eibOqXwaQ88o5eh1FD4xCNITZ6D7NZjQEQDUljhALEVPSh1Iv9ZDA27JmVbtv7VDi1ZOmtf83++kPCCTZTxkbugu4DWViD4CVhWfrwq7yrf09RAzkBcDxGcXSw7cWkN+Lj0w3fd1EAOGaG48Yx1q4Kad1mt+iBB8w2hv4Osf0fdxO6qCLVQTDwsJqbGgqVQAKTZZyGXoCbdCTzqXzz2Zuju+Aylz82dvB5MqBq5T0PCp2CGa6vaERs5qThKYiyCGDcgcHQ7etwYhBT1KlXKJdPQyzQ6TWO31Ry1GrSDNKoY5/8X9dyXc/NkqFA/J+7b062MuJLvN5yOvVALCRyY+go3DO6r2s8oZ7snX7fVL0Qal/vNEP4MUyzZNDyahcK6iumTuuVRRKgS4jePCbbiTgzhnbQ5WR/2zhlZbHc6l7N2aPNLaUHqWmJQ2I/H8mhzye1NGwTD51uaS7i5QFft6ElbkKEw8mde1MMLCC0fPhd5tFUJ8xz9pJTpkE+PJLUsP/kJ9zwRxqTZaKLXHFgkNmzWbBnFyYxtOwu8zoUKHbOV6pvt7V2DSzVNARA0eOmbxhIqkOB042QJ2PfQL+b9Y3fALn1ckx2RqGE0Riu3ZFkMsySBbyBP+ePNANFmDZcTqJvR8E8D6BqZaHN3QtPmPUrUbn5xec06Yvjgu4fyBAHDUT0nk/1PhOy3klEiney+p2M9iKc+wsNN4VO6ERy51j58Q5TqRpLxJkYEWHnYYHmrrxjEifaXfdOo7TTjuPXxQdtY7a456iVBNUUkvuF41HAg3dR3/w/jnE3lcA18EEdRa0jJZahpSDjtcculsCU07QfuNZijUQ9NU0LohzJ/KXsbNB5mGruLDTxhHcmKBuemJfp3hM+kc4GfZ5xF7TTnETWZ7/gcjrkVw7dbHU0D7OBZAi6BeiMq4jlG4pzfVSZBppENuT+vNJjPaB3GG8PVsdLdbDBU5ejFLyLhMduZwlpr//Zld3Jllr09waP9d0EuUUMkOYBr6PZ5tCY5N0HD5exn9NnikbjTi0ofMXdGDhWiYxQPcNZidabrHNbKLPTI2fB64cO/vM+MiRsipldUAQ/0FrtbJr3tzS+UzKJWQcB3tyxs3DwXv2rgzP19iN61ZLHml2QDS3CLjtuqxYpxn6IcUHuYJUoaXXN551Jr8kEgTwQP5fdLttoC3H5p66woc9MZ6jn3OFDsdhsvJtRstPh2SMuFnlLi7xLpdharAXCAie/gaiLm4Bwrdve32ekjb72+fmUzg6MnLetjJFtxX2BSq7HsksYG+GtvYi5dLcoRSJVwEZIQMeZfuieq1yck9YiQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7160a6d8-4d16-4af4-b47e-08dbdfdc98fa 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:55.7078 (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: AYpmHa4/ZHkSpOfflB01pRrl/czL0LXZWyiroHwYBDPRox94HGDmFb9QnXVtbpND86sp6RJcLSzSZ2f0EkVw3Q3oEbDuNMYIOFuRotjo98I= 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 bulkscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-ORIG-GUID: BnWGopJu-uoOnz9gHo-V5J0OaZV7QutW X-Proofpoint-GUID: BnWGopJu-uoOnz9gHo-V5J0OaZV7QutW X-Rspamd-Queue-Id: ABA531C001D X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: ayeukhhybc97aefqiron43d8di35iqji X-HE-Tag: 1699394323-26087 X-HE-Meta: U2FsdGVkX1/37yiKLjS9y5NsvoA65YfLjDBrFRymOsuv6eDr7Asa27ZVDFsuMFrdGQ9A2StRNt2P/XDiwGozpAbLYViAowyZnjc2zG+pjOoMZ62spC+ScYcYpV9zGuquwvLYlLjuuVah+4CJHmBjAsHKeOy4oQ8QQn5QZvZEeCulmXDKhBAuyAjKdRGo5aEOSn4ZHNfS4acNEpNmMVTThbC8cgj7/ZvZGzmpgLMwXlUg3hPbsO0CVJZ9zDzf6gW73y/eu2uN/2wGPykUeXHJ5e+foK1q9Zq8qSVOItOO/CTRbltpf2+VachuOXuDtMDpdq2ny0KbmLPcXAqtcRw8Mcck8Ws5whq1+bSeHOZ5FR1RGPCWuubYfrGhS1NSlfnNVBNRvklBDSPkAnAuOQMxKWYPDGMD3Vr45OyqO/lLn6M9xZmRPg/qmFxrTHsTsehype2mO6O0LvUDnVqwC8YjOOknmj4e2BSij2WGQfF1EmenBMbDkyb8II0w4SwFqcLsdRRpjs3ENVDZRDk5egSF3rVzTSHrA7gMeVcJdVLs1tjw2gL5z6StGT6AaolEyAGr7OJ0IQlgRVvWU2qOKN52ZUIy3sy/dMgKhCym/u9KdtwgrsuRA5NSdzwQAr5G8yh90Z3J53BVk0KMGI4euDnkkYEuMKW3tPVdjzdkxkCaa+S6mhvVYkM4mqRHUdCSgpZBZzFE6aNX964Hm2E8ZEi8o98C9K1IX336bwmiNTUkYlKs6PC3680Ieemqf5yQHnH+TTJjw0UfucuLqCaJkV7T/onllSVzNaB/pitIyBU2wN0824VvetGt2fx9I648EoWIwDDxaOWVOKn4g38H195HOXPP4DZYT5qgSOqiCVtro4ejYChGxvK2ZVHX4atpIYwxdFf4RzCGuza21+rysiRe1bX0vRsPrTxZHvGEZrhqreRBqq8wPC9KJ2FwSvJIjJwRXAowL+w+fsBsUrBUZyx oa1n9Jqy FNxulAVQWoEk5a5ATr+R7BLOBp6fQZ5icr/YhE0vxEqFF1aB/SEbl/J0ydJ/T6VpFXQrkMxKYEiXtfy4Yzhd/gh7iVPYDv/f4v2qnOMPjGXCJvbiesEKmKrCMFmmID8xxF8PPYqmiPmfpDQ7BP0Krr/VmK9Koip3cDjSg5GZBIlZyW+1YDWcxLBuzK9pFa0g4GmEPam59FOnD8mYkp4rYiJLor1+72/OdSHkb4A/bnM8WHTis8Kb1aGEmb+o9EXNcuZW8hthyuFQV8oxAKAXO19FtupaEeGw/aDDmQEuzLnjBSe9EWnxVbUa4iPbxMXF09z5ZyYpBkd1EF8ljVbIKTlWKGA5uNcHCjAPWYlXFHq3EgJIs+wodrJ2GZfcfGK8MnPv10AYwTAv8CH5QBaIAkkGc8H54OR71eC1q 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 cfe43f478b79ba45573ca22d52d0d8823be068fa. Signed-off-by: Ankur Arora --- include/linux/sched.h | 41 ----------------------------------------- kernel/sched/core.c | 12 ------------ 2 files changed, 53 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 77f01ac385f7..5bdf80136e42 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2178,47 +2178,6 @@ static inline void cond_resched_rcu(void) #endif } -#ifdef CONFIG_PREEMPT_DYNAMIC - -extern bool preempt_model_none(void); -extern bool preempt_model_voluntary(void); -extern bool preempt_model_full(void); - -#else - -static inline bool preempt_model_none(void) -{ - return IS_ENABLED(CONFIG_PREEMPT_NONE); -} -static inline bool preempt_model_voluntary(void) -{ - return IS_ENABLED(CONFIG_PREEMPT_VOLUNTARY); -} -static inline bool preempt_model_full(void) -{ - return IS_ENABLED(CONFIG_PREEMPT); -} - -#endif - -static inline bool preempt_model_rt(void) -{ - return IS_ENABLED(CONFIG_PREEMPT_RT); -} - -/* - * Does the preemption model allow non-cooperative preemption? - * - * For !CONFIG_PREEMPT_DYNAMIC kernels this is an exact match with - * CONFIG_PREEMPTION; for CONFIG_PREEMPT_DYNAMIC this doesn't work as the - * kernel is *built* with CONFIG_PREEMPTION=y but may run with e.g. the - * PREEMPT_NONE model. - */ -static inline bool preempt_model_preemptible(void) -{ - return preempt_model_full() || preempt_model_rt(); -} - /* * Does a critical section need to be broken due to another * task waiting?: (technically does not depend on CONFIG_PREEMPTION, diff --git a/kernel/sched/core.c b/kernel/sched/core.c index ab773ea2cb34..0e8764d63041 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -8866,18 +8866,6 @@ static void __init preempt_dynamic_init(void) } } -#define PREEMPT_MODEL_ACCESSOR(mode) \ - bool preempt_model_##mode(void) \ - { \ - WARN_ON_ONCE(preempt_dynamic_mode == preempt_dynamic_undefined); \ - return preempt_dynamic_mode == preempt_dynamic_##mode; \ - } \ - EXPORT_SYMBOL_GPL(preempt_model_##mode) - -PREEMPT_MODEL_ACCESSOR(none); -PREEMPT_MODEL_ACCESSOR(voluntary); -PREEMPT_MODEL_ACCESSOR(full); - #else /* !CONFIG_PREEMPT_DYNAMIC */ static inline void preempt_dynamic_init(void) { }