From patchwork Tue Nov 7 21:57:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449456 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 A45CFC4332F for ; Tue, 7 Nov 2023 23:33:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F94B440182; Tue, 7 Nov 2023 18:33:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D10644017B; Tue, 7 Nov 2023 18:33:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2247B440182; Tue, 7 Nov 2023 18:33:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1219044017B for ; Tue, 7 Nov 2023 18:33:03 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id E751C1A0B6E for ; Tue, 7 Nov 2023 23:33:02 +0000 (UTC) X-FDA: 81432761004.17.6890529 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf16.hostedemail.com (Postfix) with ESMTP id 873EB180003 for ; Tue, 7 Nov 2023 23:32:59 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=wT9Iga96; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=e95fSTru; spf=pass (imf16.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=1699399979; 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=abad33qGN+uklk+IGGebiQpetbLRlFgeX9ut1oMLtiw=; b=DoAKBN3hdYMUIaGad5UhoHGSRMtO2yaC2bFavM0gykuEh8ib2sV+Pmvg9q8qpctqE6941D 8Sq5DPIzs7Hpa9wtmFKOb53yUt3dNM7CmV4SrQfy/J/506TghxSyjm2db6bVbK3NHXmHaK YTdXbbu9Ew6UvbyL5BKMZJXrNqtewxs= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699399979; a=rsa-sha256; cv=pass; b=n1APeblic9E7aOdq+xse+MxnMXVvIYD0OfKVGi1apVaagOczrD3dhp77bz6wZqi3vKxg+g H9cof0xaRPWmIcJjWG7SdBEXmsQFw4PwNjh9UtFjIdF08jj3PHb4mNwtBsI6v87VWZtfSj zS16hLArvxAdaRabijpZyh1+T+ERDEo= ARC-Authentication-Results: i=2; imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=wT9Iga96; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=e95fSTru; spf=pass (imf16.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 (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJjiM005490; Tue, 7 Nov 2023 21:59:18 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=abad33qGN+uklk+IGGebiQpetbLRlFgeX9ut1oMLtiw=; b=wT9Iga964K+b3GdLrV7suhQ7EiLsrO2kzCSQOLlqHeH4UBGOmGIwo2EPs3eISN9We+yu 4y3bEi+nnHwJXfITjV2UPPQ9dbH4sONjM88osUWrcqlUnTaWMl01qQrRYjBdGU45k0+l 0DWIrZl2pZMSSuH0FZhK6Rsr5cWLn80iHhsnPTn+awAYGmOOqRwfZF+ddKs8+PtxNvPI I3EZn22pUrl/2LC70OZeqvw0SRtNp5KI4srIzZnVgu/CylZFGsWA2+cMPPlKyQP/zQzW 8+6wcWJOqsl6HjmS2e944hWtL3OyrM1/koemPuuF0FuXSJljNllw9sIeG7WuFNFlYykd Gw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23g2cm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:59:18 +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 3A7LIoFo000377; Tue, 7 Nov 2023 21:59:17 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2041.outbound.protection.outlook.com [104.47.73.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1wsksb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:59:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RT3P6mT0ncRX1slcUtorTexisdq9agbSU74y8R19YJCgupfz6XvYYNFlCpT+m7B+Uj7Myp4vYapV18H3PxMAyKVwMzF3+T+H9r8Bv2f8TqqUUeWZrvXcDAI5WCCEorjws33s9qXZV108rPp/grJyjM3eB9lCEht48N6fyd2guP2sQLkJgNvQByo+cv/w3GfsodtVYydFHjzq/kdD7S+p26UcBOk22cwZTJB+Obst7e4eSupKZIkgCdc+CnUZ9os+2mGjDDl7aiSA8MyLWDmIlRMPG53WWuUf0JyXNvlpnWRo+sEmaXNdJlV0zjED85JoHYqg9yNEsbnVMIwlR/FZNQ== 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=abad33qGN+uklk+IGGebiQpetbLRlFgeX9ut1oMLtiw=; b=bPhVOs5WBekagtWPuQIlr1z5tWDUBazETWR8E0hrGiMt5njBLMaMeY15f4PPUdY7TMKZxRjuPqT7lN17Ywrr/EN3X05BLopMVjT5085JVbzffAikBTCn/AaEa+jDraCN7xi9EsmBs5e+3N/CD/+sNvpIbaj+48yB7r441yKBXQgBYqBmlQgnFwWbJvTgc7MwexbuU/VcQ8GXGxvE8OdxYvdYfcSwFFp6qgNbaaN3jKBlsM9IuXiNPaCCJLRTHIlJ7oNa6IYM6Wjd4STod9MfyNWipB2e6m6dz2S6vqVJzQAxuF057qiO574hL5TTW2lgTT62W1XrKy/brC0cI0mt/Q== 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=abad33qGN+uklk+IGGebiQpetbLRlFgeX9ut1oMLtiw=; b=e95fSTruHtL/5uZixN8p9k/IpUJBkzD19fWgkJj9sqKIda+kdBgwo9QwqOwsCe1tQWo5I4RUvm9BGn7CF6nPiO2Y910exBfe6nHAQ9gpAE+tZQdulx+5A827IUQk8P0n7k+Ku6EcuCsuC4TAApA4ZbbxvJ6Md3psfVzyYqHtEn4= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CY5PR10MB6141.namprd10.prod.outlook.com (2603:10b6:930:37::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.28; Tue, 7 Nov 2023 21:59:10 +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:59:09 +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 29/86] Revert "preempt/dynamic: Provide cond_resched() and might_resched() static calls" Date: Tue, 7 Nov 2023 13:57:15 -0800 Message-Id: <20231107215742.363031-30-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: MW4PR03CA0056.namprd03.prod.outlook.com (2603:10b6:303:8e::31) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CY5PR10MB6141:EE_ X-MS-Office365-Filtering-Correlation-Id: 70876bdf-73a5-4e0a-0425-08dbdfdcc536 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /ran8/8mUBUuRMHICaN/U1DqYdb0ruGUg+LJ2l1tGRD6KnYkAYjz2IMZGv/tFwBJ8q2xFwoUJCkjG9aOSRypzjUiFAFxvyNq62mQY9wD7XploGPsMntw1Ghn4ASQYWRqxts3WMS82NBNhZIgKfITT9YXc5nfTObEkey1fGN9fUvbqifYhnFkFYrmwEMncPbMDGc030/1pMGxZSLCljxqkm/kOsK9TZM0aPGClgB+ptJpYNotWN1Erta76TwCMrldbKTBEEUrO6MaKjZmRGBYQAX6Yh4r/vfuyl8HPuEmIOsc99nBg/sqVSEa0P4opw9IALFVOcLzkGoX5slyUABWcGwOmlHJj06Ueym6b+1Skmi6NTCNFVAU3yyezllGcsjCfJBZyvZ7krnB+uHgiGkc0Xil0heHv7r2s/YavrssZvmhElxkDfNB+KEHNLplAemIwjjH3P+K1RbexVS1DsPnzxymI8+PSCA6eL2BjQCHsWHR3l6SGKSzqte7VEnEtMKfQ5RQTGUMRK8fbqvxHtWhdVwMdiunkZi0AFxrqEdTzklviTBZQjWdPryQmXVX1O3V 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)(396003)(376002)(39860400002)(136003)(366004)(230922051799003)(186009)(1800799009)(451199024)(64100799003)(6506007)(86362001)(103116003)(8676002)(478600001)(8936002)(6486002)(4326008)(6666004)(38100700002)(1076003)(5660300002)(36756003)(6512007)(66476007)(6916009)(66946007)(66556008)(316002)(2616005)(7416002)(107886003)(7406005)(2906002)(26005)(83380400001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b/myVqYh3rUrZ5mQLkTCHc8jsfhE5kHzrEMpmT5cjM45msEk/fE0PPl5+br7+Qxt3XEzWEQspCMfO9sVwKVpTyMJqLRz7llugIbQzCYa2P5wR6ZzulCss/xqEPRjVsuod7kgGCxvf4HXtJikRMh8zG3ARAp+N9Of5/2z0YDDIS8vXk6OLYhrUku/Z0T6RPYmU9PNv4j5JCkXKjWsteOz5XSESR2TefSh/BMY1qy9kV8T3UNb0H03lxxROPvsTBlmYzPGiktYzWztkX5SPm7RO9nDgkgABwpHnoHzGN3Vc9emjiOdj8cWy72nkUk2B864S7k4kjoSIISWrYHSdTBO0JkP07Y7MGyboZbUtUXh+Nv8TLrQzkgewLkKqDV6OOM3tlfqbFA/AO2pYUeD8+EczvAhi0O2wTNV23JH2k6VNqiyz5yVlE+XuabaYrgYPslxx3Ta/9DpjE9v5uadLRgO8yJwh607ILNOK3qb8XFzcUm8mecljjUN9aapzTvhf0mn9RELybDIkwXh0ySHBtqCnLvYDx5stMi5KZvW/Vj98gsHUCtJc3gyWrJxo3tFP5arMgjgwW5o3LuZei8fKRDKx/RUnPq7kx0cFQHGHhqXVsu5e1SBssg9eia0s4kr1ru9hrooWTZvmHbxW+O2muB2Z0PLxYUSEFPfXOEq2+2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Rn2NphkrozG78r6Jo+ASJAeBjPHSTWUbS71O9skeDDCSBgde6OyWdHTr30Wuv7jJTONpgPs7I0VZBpjgStEStnSHITEsa1LlyKg4luxOy982ldoTXMZmCWwrLGQjyKeWIaRlAU2t3Qu3SwFpbzIA2auqn8SPiDy0I0Anj1xkw3z10ilnIEGO40KmWKfDXARsJfAk54iD97yvAN/c9L3AC41O6Ei2ksDqmu4fzlcm/H6pk+9ar+2hd5/pIqGdxidejGmk21F4m0XmuR3lHj+anxvyXEuCGuOiPXFXhT+wbZCEze8FcSol2acEDyqan2GcYXAlyoSgUFAjgDA77y0OpGNSpNPHKWjmYPYU9eSI4gqSNkV8OwSHH2MQvRAAdlK2ofWt+zuCMOck2HmdP3FRAgZd2Ye3gsE+5iYd2DX1GEag== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70876bdf-73a5-4e0a-0425-08dbdfdcc536 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:59:09.9102 (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: 2ja57lp4PQXBN/w8yidKjvavsD2HDtXBLZszDkgjMSNytBIHbi6MMZd/MNT0qgcTo6UJ8JwavQk1PLH9olLqkL5OY33oC7ByTuRMkYSj/hw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB6141 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=999 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: IJXO7Fd25FaxiNLHM3P5iaGMtBRPlFCT X-Proofpoint-ORIG-GUID: IJXO7Fd25FaxiNLHM3P5iaGMtBRPlFCT X-Rspamd-Queue-Id: 873EB180003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: rdbgqdgdxpzh3krw7o8wibz59pbsw6z1 X-HE-Tag: 1699399979-690559 X-HE-Meta: U2FsdGVkX18dQ8mRzjPmwJ24LTwvBaM2hfQG3sDlJxvzl8HLlSNPGXCb2/4m3KNJTD41CSaylfKdOmuwpdPli64FxdPLm3TpSSVSojPqRwJVqiZ5/JX0Um3K2QkUJbeOktnHRtZX3eLS2Fgm/T+jEEU8J4iXCoMkDhkA+v9AaKnZQYDvC+gwjM1FUQT710hsOxqn6HHEKonnYdek1gxnInbhFLxrqlpsqvwMhhABRuIOO7sGAu7rtAp4dsHFqUsbJcGErDuGt/2ASVXTU7xU1FU2s3x62rKh7W58AtHXTMPMqXK/IkRgKOUR9baRcQ3ewrLIcxqgzOT7s0ausqpKdivyC0/e78yKj21AMBy7Vyj2JT219N3ARLh2XJMVDx/i17nX/4myJ4F20nzgy+TBeS+a1cnDvIu/aWq1GVSDm0wFfFu8t46RFlyR7zl9mSUZyCksp0ARYisXg9S1TCyS+Sbw8i1G9nySLm8xMfHQ3BEP3vqPv1MduWIPJOrNtJ0oBRUccxgrAuV6cfYDJtXqaBRUHCIX8z7aV+izqH8o91ieM5HUAM8CJePXgS0ejULoZrls0577rzvvuR5lnYwOoke1tJX+qlciibgCILm491b1z/Q7V6VljE1ce7NXO7PDseuytbkDJfM2dq9mEVHCFIz7V+2Z+2ux8tJ8xSR1FKjhte1LQcnofIP7PTWihQByArHunvPADbxMTzGoHyGyHQgrViSsBmur0ijry0xvFr8gx1z3UL0DhRuVc8J7CVfZitBzwJAQc4upKHmvFX+YKRvgAZIwoYAdoX2atusrDsyTMt4+rhY6i7f1t1niHotRD6XnH8Bh2wIMzopTugXJSSIjO8lGKiMhmJmRfubN6/ZIaB5OQiRDZv5OKCA1aI+jkVSQNB1o8ea4Sbw/FDIgYqswu9xcdm1d79B7hEVzLkv8zM9ZMoC4hItoIGuYCM4I9eD77stq9j1OvH9O3eU HOzhR8Ee amxQvYiE2F3mE+jAjFfzJNH8ZYQvAMNld/Dy0Jkdvdz4WJVnyF2Q3shJRZd9mMCwnVoYRYWez0hnYKjc+OwX5fGO6+975g2FgABIHpX4jekdTOKHuahJtceM9I+6tSYT2ZQIHk2D05BE02HVp/VZn9Q/AmFVVaMqzZ3USI83Igxu7g+4VHenJfVkSRcFJuEKpn6mFoWcNiEmTss0sOuww/fo+/gi5RtPtSo824tDiO0tuo87MgiXb6izecn7zpqHHx807bnTt8vKY6EIw6HQDBOadz7RuQVc6/WewoCg+CGn/P1F8nId8NS43bddxy0Bk/K5tEsenY6+56ra0kRF5I6eP/XjpUr41ou+F6zHQx0+opOI0DPr1xwUSGSgm6caxO5DwksF+rd+A2V0ggwKvTtZJaJF3/S2OQk+DKHlAWQwf4/qRdpubySU1BxJB+DWlfcoqBmyq9+Ja7iBJAM/HYS9KedJoHhE25oLvokrFF1vcchng+dwwLhtSWg== 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 b965f1ddb47daa5b8b2e2bc9c921431236830367. Signed-off-by: Ankur Arora --- include/linux/kernel.h | 22 +++------------------- include/linux/sched.h | 27 +++------------------------ kernel/sched/core.c | 14 +++----------- 3 files changed, 9 insertions(+), 54 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 5f99720d0cca..cf077cd69643 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -30,7 +30,6 @@ #include #include #include -#include #include #include @@ -97,26 +96,11 @@ struct completion; struct user; #ifdef CONFIG_PREEMPT_VOLUNTARY - -extern int __cond_resched(void); -# define might_resched() __cond_resched() - -#elif defined(CONFIG_PREEMPT_DYNAMIC) - -extern int __cond_resched(void); - -DECLARE_STATIC_CALL(might_resched, __cond_resched); - -static __always_inline void might_resched(void) -{ - static_call(might_resched)(); -} - +extern int _cond_resched(void); +# define might_resched() _cond_resched() #else - # define might_resched() do { } while (0) - -#endif /* CONFIG_PREEMPT_* */ +#endif #ifdef CONFIG_DEBUG_ATOMIC_SLEEP extern void __might_resched(const char *file, int line, unsigned int offsets); diff --git a/include/linux/sched.h b/include/linux/sched.h index 2b1f3008c90e..95d47783ff6e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2081,32 +2081,11 @@ static inline int test_tsk_need_resched(struct task_struct *tsk) * value indicates whether a reschedule was done in fact. * cond_resched_lock() will drop the spinlock before scheduling, */ -#if !defined(CONFIG_PREEMPTION) || defined(CONFIG_PREEMPT_DYNAMIC) -extern int __cond_resched(void); - -#ifdef CONFIG_PREEMPT_DYNAMIC - -DECLARE_STATIC_CALL(cond_resched, __cond_resched); - -static __always_inline int _cond_resched(void) -{ - return static_call(cond_resched)(); -} - +#ifndef CONFIG_PREEMPTION +extern int _cond_resched(void); #else - -static inline int _cond_resched(void) -{ - return __cond_resched(); -} - -#endif /* CONFIG_PREEMPT_DYNAMIC */ - -#else - static inline int _cond_resched(void) { return 0; } - -#endif /* !defined(CONFIG_PREEMPTION) || defined(CONFIG_PREEMPT_DYNAMIC) */ +#endif #define cond_resched() ({ \ __might_resched(__FILE__, __LINE__, 0); \ diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 2e191992109b..5a0bf43975d4 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -8515,8 +8515,8 @@ SYSCALL_DEFINE0(sched_yield) return 0; } -#if !defined(CONFIG_PREEMPTION) || defined(CONFIG_PREEMPT_DYNAMIC) -int __sched __cond_resched(void) +#ifndef CONFIG_PREEMPTION +int __sched _cond_resched(void) { if (should_resched(0)) { preempt_schedule_common(); @@ -8538,15 +8538,7 @@ int __sched __cond_resched(void) #endif return 0; } -EXPORT_SYMBOL(__cond_resched); -#endif - -#ifdef CONFIG_PREEMPT_DYNAMIC -DEFINE_STATIC_CALL_RET0(cond_resched, __cond_resched); -EXPORT_STATIC_CALL(cond_resched); - -DEFINE_STATIC_CALL_RET0(might_resched, __cond_resched); -EXPORT_STATIC_CALL(might_resched); +EXPORT_SYMBOL(_cond_resched); #endif /*