From patchwork Tue Nov 7 21:57:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449413 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 03D15C04A92 for ; Tue, 7 Nov 2023 22:01:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A2C2F8D008B; Tue, 7 Nov 2023 17:00:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9B4FD8D0089; Tue, 7 Nov 2023 17:00:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 71C928D008B; Tue, 7 Nov 2023 17:00:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5CE0C8D0089 for ; Tue, 7 Nov 2023 17:00:53 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2894740B4F for ; Tue, 7 Nov 2023 22:00:53 +0000 (UTC) X-FDA: 81432528786.20.DAD3D9A Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf04.hostedemail.com (Postfix) with ESMTP id 912E54002B for ; Tue, 7 Nov 2023 22:00:49 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ois6llJH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S9psN0J2; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf04.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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699394449; 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=NbIG2FDSqQQltjMT80C3mAvHEiZLiM5q+kfnA5OMsx8=; b=bdUfJ8T9BMPvtAJxbu0KJByKqsUmpHbcYdHbPd6nT3y1zBsh0bIfprt0s1Gx61N9XfYuEA MTYOeFCeuK8YJONu7himZSB3SknrEPVALYV5vU9LNSHWssgBRzMGvB/HPNgKiIXCHmGp8O jIRmutyAPIs1BJEtkPfAEFJ5jD3T8mM= ARC-Authentication-Results: i=2; imf04.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ois6llJH; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S9psN0J2; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf04.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-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394449; a=rsa-sha256; cv=pass; b=C/lSiED5z7qcOR632WQ264QOagHV+tXhRqQS96yq721+3CShyhn7597G7CijMkq/XM2Rxb EkWt8PRYCr0x0+ODoarfQUWXRss9DXoI3+WKqCw30xmeppk++Zw26TOPDMR66ta6QYw1lf 2p2U7yjmlWEgeN8t4eIORFtsbpgGfdQ= 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 3A7LJVlY000503; Tue, 7 Nov 2023 22:00:27 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=NbIG2FDSqQQltjMT80C3mAvHEiZLiM5q+kfnA5OMsx8=; b=ois6llJH2raTDmSBZ+CXcWgGeVmWk44EUp3VYxxxAG/W5zUQ8aNccWOwlmb9LcxOky84 uIxA7MdbqDuBlIV8mDnKYhbGrYlGpcJq368g8Qq05q2kLk8r5lXluXzZ50+8FTlF7ZgE WgkDZ1eN/bgekCNp3AyGFLnRJlGLuE05AbjAz/3BJV0sNnEtpYHjFSgxOgMEfSCFGCl8 b1rR1/3t67C8osHfQeCFhieBAch616DXZx3MTnjIhVYtbLxKu1krwrG35pJww604vMTJ zFYCx+7uuukGft+Z5jxX3iP1omFP9etMoZdZGp//oIUifoUughdak1aex3wh9pjLbWCv JQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23g2e4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:27 +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 3A7LIhBF011123; Tue, 7 Nov 2023 22:00:26 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1tsm6c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cWGC6s7S3AY8ml3RAjoQFRBhFRm2UDsrMFdFg2Fc/jnjwiy6WNE1Lwt3jBKCiA8qCpHt6yxkrVb/oETjRh9xFVw+Y+PVoCwOHymlXXy1H1+oXzyq7KZS2SGHlUefexCOf2g3RM92ozLmubmTGqpllzw0GOf51VDls2ra312/poJEnP32kaotrTmoNxDsTrF6LvFmUI0jB0c7f3HBxB/ivvun21IWpYmZzbr5xiBak4DKqmAifJ+M/SeTEkInHIuZHPcX/6nR7/9ZGkBoAX2Zb3PdcM2yD+S/t60n3kpCqIgffARCO7ieRMvlwQ9OUb1EtC6EQGXjiEwlLq9DSAhQMg== 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=NbIG2FDSqQQltjMT80C3mAvHEiZLiM5q+kfnA5OMsx8=; b=ICcbzu8N+H8AWr0daTK/uAl3vRwiMdxAqyGwJwhV3Wf+r4mmY0XH5iqQtvPrQWEhxu+dr/1xulS9YaK8a0wIGWDNmEeAoTDo4cy7KEgXE38AuC0Ae9s3UpNnewCvvEFpAbOkDU09dJ//cLgdf3+FDdSLNbDuplttfm6n40/CRoO2uucgIgPm39fHLaNXrGh8lRRJlQUIXuBIFio3WH+VKN9lVXi+vk8byfhCd2cpy0QGMFGBrRvrJRw9SQ5MXNtifQDxxBTkYQeFlco7UCAk9gITkHYLLJDjJqkEnofs7VFZvpPbIULOXGbx22CIVEaa8QxSul4M+JYvrrxjnh2pLA== 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=NbIG2FDSqQQltjMT80C3mAvHEiZLiM5q+kfnA5OMsx8=; b=S9psN0J2esji4FTbxR20sX3/LmQwI7ZacrH9sfvL7g9SsI8vd3tIq6BWufQ0PNsOMTJfvi/F67+zyl7kjReQ0o13BbrKW2uRcG0newxmA+nj4hjYeBAHlfc5uQNN1r4rTBBa1HpeuKzD1jutBfzcTZknSTybh0KtiHQuZXRNK4Y= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by BN0PR10MB5318.namprd10.prod.outlook.com (2603:10b6:408:126::9) 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 22:00:22 +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 22:00:22 +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 52/86] sched: remove CONFIG_PREEMPTION from *_needbreak() Date: Tue, 7 Nov 2023 13:57:38 -0800 Message-Id: <20231107215742.363031-53-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: MW4PR04CA0240.namprd04.prod.outlook.com (2603:10b6:303:87::35) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|BN0PR10MB5318:EE_ X-MS-Office365-Filtering-Correlation-Id: 4974a968-bfbd-49a4-968c-08dbdfdcf055 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mzgB4nH0iWb1s6QN47JLynQ7vleQBxDwGKRE7IeJNBppH+UJbaih1nOMnYTETkasv+CUOw69383QD7MqD9iIS5FFcWgWn0gcoataeOwL3F8uif/6nVngC2FNu5zPkIh3p0+b3irhItUmRWsM3AbydHHjCXdkqB2unUQWlEsu/U8drPbhZRHgPIlKePOluSVJVPw5t4q02lBBK6WrgXXNOf5mabBXMJjcMrT7Gq6KCTOsQ/fe8bhE7ggdqLdENw07X4KTwjCunjBoFOCbQGLMOe1WjeoCxypagUey0k/qJEbRpKQDzxLzGadyFdXADS/AyC/r9ys8tJJnJKabra6zo7nj2/cx0BLpMHp1RoRMUoyuxtazjrE9iryRW6FlPy9tnUy3JBO+7x2pkE93IJpiFwXk8HAmWJ9pop2c/NRo9SeGMH7y7t8VDfzm6DA8iAcNdQmTvrYFMN38chxP3gvxDoqNUpePmZ1baS74zqXbuPvHQRXV/VRsT9/tdhHj19viuGG6cPMVTmE3lVlUm7kik0CKxAXELbAZTtzWxYUaf8oU8SjtldP/p3mdvLs95Ko3 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)(136003)(376002)(39860400002)(346002)(396003)(366004)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(1076003)(26005)(38100700002)(83380400001)(5660300002)(107886003)(2616005)(6486002)(6506007)(478600001)(6666004)(6512007)(36756003)(316002)(6916009)(66946007)(66556008)(66476007)(8676002)(8936002)(4326008)(7416002)(86362001)(7406005)(2906002)(103116003)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RFycjcMrMVMxyHwej6DT6at8GK4O3tZAGDUd8Ug2IfYM04iXC/FS9krK8Tsz71bF1cnIVNc2fInSL0CaXwxDZ5zMwKJCGZbZXe+IuAB3PxINdmyMH4Gx89T/cur5FG9KqqYoa/Cs3D5i14BQIVUICzc9M/dLBfyq/LfA7iJt0obOU+i6qaouaBb7qkgmsrXe9PuFhQHRVKWLuprgdl6hywF5nG1Rgjl3syTORIT/4MD8Y+H4+ocV6NAsaHAav8DyTrdl/HOktTHwxF2+Pcm4eGikOe2k9rpfoFd8g41RK+A/EaQtWJH9MadGb2rweLgqu9ffjOTIjydkBfw0TsvTY14gdYRyqp8QTiX/3QXbeHPI5yyvp/Gspj5z9vxo89lGNQOHusWb330uwRp4m50tHyNWm1JNFZJcu/aGSaT24Fu+Uf7mHzzguiuI/ynlUca5prIu3olYNSqXyJz2f+R91Qw+m2j+BeFpWro/4dA6yE9xRp2XmuVxcE6Q1hUpuX/73Bihjj0nWrq5Y9deQAnkIqk5sbDJOM0UtUdv/CxE47iZIlxsz3oWvCmuInMEoDo4vNBruWK1Zya8Klm0iG38ixVqycWWSogIWnIm7QIiDNb0VVhrgNxzLMPRUAm1+/SpnuIuC2mnr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AeX93FbixIHLEs4iG/6GuiYb2B/ohxwuV83sJnFivD+Lf66ymbXwzLJgbwmGwe84wp3i1dNNeVKeKH1GhHnAKPkfUHExc/FxTZ479+77gSIIo4ZBjxIM3Z5elPe5zeMwPiOScif6xbTYC9lW+XHxAaM5D0PJqpta/UCfKy27ga9FOGgZGN8X0sTLwbkKsa/x7UDoy3W82qV9+qIWELd8m0rEgCHnBo0MAeBfZCjeVJPAa7oZ69F0tGXy6MINujihW7t/tNiHtfE7UwAV0tawjLWY3wKLQRVj5MC7n07E5BTqRWgEC+VLDiSv/eiupA8NaiJKQoz2OFsQ/AJmfdbqgpOmZ4NThXsnRE0cvOBnaDVkGnUWHwlVr7e71epI7secjCyXuWGGrZbHCWFtK46VSxQg9qnB8RV1TSAEQ2AOlC7eA2CiQ5IWopyj+OFbgPc5tTnxYtqeA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4974a968-bfbd-49a4-968c-08dbdfdcf055 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 22:00:22.2710 (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: 1qBAAwMYT1BORwdD6D7sjQwS6eSvr25TGAhMD+YBfoSSuyXptVwfnxZuOEXE2vLQmgRqNtQu9OV+tpgdMz2bObt6q9a04MITevUWGPVGXP8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5318 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: ds60vZVvfcv1MgKZCwKyfE2fnKfnZbJ- X-Proofpoint-GUID: ds60vZVvfcv1MgKZCwKyfE2fnKfnZbJ- X-Rspam-User: X-Stat-Signature: fwsbzux1px93kt16qqfzo7dkfkikqa3s X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 912E54002B X-HE-Tag: 1699394449-690715 X-HE-Meta: U2FsdGVkX18AI2DXHVE6ZvPxNfBpb9/R14WvdOUpZ13woYVPSJwfProzMYsmhV39vjjQLD25wj6Hxpx86H/U3DuDRwQmPg/+L5JtL1IV5b66o+qpWlkN4KMjkCvoIqz2svZIm8GSxrlrLKiYU2fj2AxheDjo0aEmYUNEjTFNQUKp/E0SYooVLt6MHSfGcETW5Lb7AhnO521ZfNr+hYsKUIce/aXY3tNZdDBt8yyxzGE3BghTvBO7lPvXPyVBqJxsdMjA3RQYZcRB8bjjlWESpLvbBY/WHlEqgswzxYoIcJUnH5wzjHmy4r/lfTSb9Y6xIilS8/pWLrwLJg2L33UM/Q4N9LI2WFWY6vlJ9h/FZfDb5NQO9J9it8luZ2rLg2X/NrVcwE53QnyypF2YyvwmY1Qi57wOypmbFD/5i+hAautetP/5eincjOyTkq44Z+leIgWYe2VSRG27f9pdkXvLs0s+00UQcEQPQcxFPZyZjTxpa/KnPGZhXWTWkj8g63g2tFhxH+kx2TPMiOdWFfQU9H8R8Fc8ptarM8aanl1I1rMIPHDy4tAlVfPJH3XIK1lqh5So4pFWltz8jSaJH/GIkAjgfLh6dK0GqzQ8WYY+C0QzHw2cx07bgQDBr1srabxjl7RX2PuPVUE20hCX+2qB5MktIw+9M7X7t4SUXPej7aL4bEWo8TtwggH4/0VC5z4Yu17YfDp1Pr1pDsgIHVo8V4nxF8vGr9P85M8Wt3ZqZnUoEM1fwwXjqDSCgEYmo+6mHmugdFyEoIUgB0htOLvhVkNi+Gf7MbkXwjLQdLWYhIMe4dQKA1U1osuedkaAHdOtxSooExRYF+o34xcgF6cqPonHrNcG62UslzZEG3NhcZEOiyUChUn0YegMdx7nP/BWB+T33uLHXo3zPnrLvNBUWnJx75r3VNnXMQCOTWbdGgNjCfn92+H4e7VqMAHBTsVZFmzi3cleoMQdTibR+5m PpNuy0OH /fjcS+msgHtS3TVkJ/x8tOUpHUn2vgnQTkbA3XFtYD/5gMipEvXfOXfw1mXFY2VPhkM8XtB1kPui1Q9TjeUrgKn5vQSDP3ahJF5UzTUJwyvqHoIeYX0O3nksBKpldutpafOnVQjNRYQMSTpVHys9ijftHGHrunUya+fw5jvK7vCDeUnFitH1IwjW8UhutmVS7LpxjorylL5nVZrJI6A6ZQpDvL/OAUjW5JqeTv88Cwps7NihFOPRDhtXHbY8ta6fm6AFAgIizehFzYpyiTAa+vSJ+mRlt2RMQbWnQW2SdzQaHw+HKcHWF0vJktZ/0zYNcs7ekNBhvDYCySCUj9YUV0zJK4AZ1iEXNJgDbdmNr/QpUa2dZZr/xTmv6MfC+VBdpY2bCM7ifLBKNNSL1KDkvXxqSnemcbqxJVU2DQi6dF17DvBU0dv42Z/5tQg== 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: Since CONFIG_PREEMPTION is always enabled we can remove the clutter. Signed-off-by: Ankur Arora --- include/linux/sched.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 4dabd9530f98..6ba4371761c4 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2146,16 +2146,13 @@ static inline void cond_resched_rcu(void) /* * Does a critical section need to be broken due to another - * task waiting?: (technically does not depend on CONFIG_PREEMPTION, - * but a general need for low latency) + * task waiting?: this should really depend on whether we have + * sched_feat(FORCE_PREEMPT) or not but that is not visible + * outside the scheduler. */ static inline int spin_needbreak(spinlock_t *lock) { -#ifdef CONFIG_PREEMPTION return spin_is_contended(lock); -#else - return 0; -#endif } /* @@ -2163,16 +2160,10 @@ static inline int spin_needbreak(spinlock_t *lock) * Returns non-zero if there is another task waiting on the rwlock. * Returns zero if the lock is not contended or the system / underlying * rwlock implementation does not support contention detection. - * Technically does not depend on CONFIG_PREEMPTION, but a general need - * for low latency. */ static inline int rwlock_needbreak(rwlock_t *lock) { -#ifdef CONFIG_PREEMPTION return rwlock_is_contended(lock); -#else - return 0; -#endif } static __always_inline bool need_resched(void)