Message ID | 20231107230822.371443-30-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 2CB38C4332F for <linux-mm@archiver.kernel.org>; Tue, 7 Nov 2023 23:10:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AD148280020; Tue, 7 Nov 2023 18:10:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A32EE280008; Tue, 7 Nov 2023 18:10:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C273280020; Tue, 7 Nov 2023 18:10:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 600A0280008 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 18:10:39 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 41232160B26 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 23:10:39 +0000 (UTC) X-FDA: 81432704598.27.FE80C96 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf11.hostedemail.com (Postfix) with ESMTP id E170840004 for <linux-mm@kvack.org>; Tue, 7 Nov 2023 23:10:35 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=4T4vUd9I; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=JBwQTfVZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf11.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-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699398636; 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=NIc4sxhZAhOKoo2VZ88Y6fbqmbPRGrl3S9o4NPWPM9I=; b=n1wuciGLxZPUnC8zfUZDJGX9+iYfFdpHLAJWrs2Vq1QFWbnhHkfDZzckycuv17w2RX+KM5 criY+vq6Os/boxATOl9f5D34jnnuDct98qCP1l6VoSPx7EEMIkYJPfJ2T/Gmmyj23KC7EI gA8gW8dEBMDNWXT4rGNXZR5GqAj9Ye0= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699398636; a=rsa-sha256; cv=pass; b=1F5KqDY3CfCJFkWFMYvk9epFcRLSpbzr+pAIixEihtPRrgKoCMtNh/NEA/rJ9iM75UX3qa QlLBtLf01MQFFF0Ej+PF5pg3Q1CZrdsC6l9HQEgBMhIHpZlMhq70QtTL4DRXrz0ebNqfEC aEVSapJqclACKn+EqADvVytdmj177Xw= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=4T4vUd9I; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=JBwQTfVZ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf11.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 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJfbZ014961; Tue, 7 Nov 2023 23:10:12 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=NIc4sxhZAhOKoo2VZ88Y6fbqmbPRGrl3S9o4NPWPM9I=; b=4T4vUd9IxkPvU94N34Z3y7eAp+4dKg9RrMRxJFgN140I+didke9VvhBbwtsDtiu6Wz8a vFtIPyywoikwVV0cmVWH7/b4C8eh+EenjCmP8MmHd4M58ZDuQF8b6pGhXevKqEltWnpC Wrkfv+//+E1eKjiidpvIKq69kHk5vp/7iwuj25bzaxrrbYuYQ4jFus4NMH/izBkKSENO mCyC8kF68konlv023lNx/LZoRG/CQpTqF88uFQX3DxzweD5Hrf6XJp3lJ0DawXuZ7Ffr 6as40jf8jYoaWFAAYW3qy45Ko9qUKiR0Bdiza3oMwSHj7WwqC4tOPsnNwWwa5sjUEgd1 1A== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w26r63v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 23:10:12 +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 3A7N2hOA003851; Tue, 7 Nov 2023 23:10:11 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1vvcpu-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 23:10:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VJSiMkehQBhYD9XSGpjyPA6h3kBuiuRPRnmangY1iKXnKxg7DMLgCzrkr9gp4H3rflk8VnA6BJXGof3zK2mBTvKEPZPSnX0a/8ASHphWNf4TnvQL5R0W9LgCFbXb3cOYfhHeLjP3SLcXCNS+rQDrOvnhFkSXc0mXpP4dfob6DaE4i6nv1t9oNKt09/anx4QsYywA38CeLmhdg4AtPt5fowSa6Z2Hm+F3r5C3Vk9F/w3qcjfNn1N9onAuvHI+sOLL5Jcpj3mTeK1tfsYzrNYNMxR2Y5VNPxJuLYpAnq3O+dXycuYKYGfcKD2gCQTayGuD7VhHDvV3ue+0D2RzUeQhEw== 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=NIc4sxhZAhOKoo2VZ88Y6fbqmbPRGrl3S9o4NPWPM9I=; b=T8rFaifas9wnSjcuuuTpKzmkjlwiuiovCuba4MQxXrOR1rFt9oxTt30p9KT8XU/cuuOPocw/sOfo0LpGN34RHpjX+eFTHqhBSJzIt1CEvoImTGKAGPiZ5NbmdJqUS+LV9P+innExOTn4BmfStv2n6ryzmQVe7OpryhMtWyj3Ff7YNj6KYWI00RJVs1YIaTgyhAjQULUoDvmx2HoV9qPg/kCNgNrIKAB3xxAPjemjtAv6pMMYth/H91U/thc5vA4R4WrPX9L1STIzuRN7TiJT7pfEZA44KuoMYhwRVnnZCF0Rqf4IupmcpzkWY+zo0wtDSFe61dOwMJ9959W/jdB7VQ== 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=NIc4sxhZAhOKoo2VZ88Y6fbqmbPRGrl3S9o4NPWPM9I=; b=JBwQTfVZbp/BJ2c20xblXhueNUwPdKvHe0Bk2HlxwDWsb5usYGYWsBt0nirk6n6zdX7QaXp6vu2lLD1MF3ScujGaxvPIxMGMOpqWuOUJxiiYBaR9dmhjFBD5xUajWes8q+PuCyIkoo0uA/PHkiz5OlqHA2cgCF9B0JHCAG92c+w= Received: from DM8PR10MB5416.namprd10.prod.outlook.com (2603:10b6:8:3f::19) by BY5PR10MB4369.namprd10.prod.outlook.com (2603:10b6:a03:204::11) 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 23:10:05 +0000 Received: from DM8PR10MB5416.namprd10.prod.outlook.com ([fe80::c72:c098:4fc2:629b]) by DM8PR10MB5416.namprd10.prod.outlook.com ([fe80::c72:c098:4fc2:629b%4]) with mapi id 15.20.6954.028; Tue, 7 Nov 2023 23:10:05 +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 86/86] sched: remove cond_resched() Date: Tue, 7 Nov 2023 15:08:22 -0800 Message-Id: <20231107230822.371443-30-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231107230822.371443-1-ankur.a.arora@oracle.com> References: <20231107215742.363031-1-ankur.a.arora@oracle.com> <20231107230822.371443-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW4PR03CA0309.namprd03.prod.outlook.com (2603:10b6:303:dd::14) To DM8PR10MB5416.namprd10.prod.outlook.com (2603:10b6:8:3f::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM8PR10MB5416:EE_|BY5PR10MB4369:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ab9e4a8-eeea-4599-c2c4-08dbdfe6adb3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cisvorvAi0nLDv7P/e1asv3CdYcyDpfyDp52dDRFhi/vIvM9JEG+WbxXygxkaKHbbxfuODJQrsrRPI5qbafXC0HZ5bbMqoQwoHrzWUDSgT2w/N4AtidU3JugMNEQne+vJqnteqi7GPu6HHNWQVEwbHqV1YPxAZGAJhL9Ex5nLeDbvpprHijz6ZlAYMQjtlWQEy2Ehdoggfou1kw02D8OFbomneo+hHZ1UbDdbkqv+/fW1W8DWpO15sJtz87P/sI3lwn41bwbsxs+1TKhY7GFdU8WqKfMKjom7WWv7OqRG6dIIZstfF6IibjWca4rToKPeuHqN7ezZ9xRwAQvT6OLcClox4G/g8jjWjXA4YqBSN69waqc9t28WqZYrrOgv3eJRXtE62Bps1GJR0YYlBSt1HJdNQJqG9MOlG7EUGGiaVqjkp1iedfdOvE2qCS6nWamW3dmjBkxPsmEXNRGDiRGaXuAS+AG3UAg1Ow9JlLLQUT7An+ME1a6p7WQbJdtnD8bvL4pb6kS0CB1ROtIltnKhTP1lzKPBOTw0/i2EdNPXjS8TIjMn8O5kulmrEHg6w14 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM8PR10MB5416.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(396003)(366004)(376002)(39860400002)(346002)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(66476007)(66946007)(66556008)(38100700002)(36756003)(86362001)(103116003)(83380400001)(26005)(2616005)(107886003)(6666004)(1076003)(6512007)(6506007)(6916009)(7416002)(7406005)(2906002)(316002)(6486002)(478600001)(8936002)(5660300002)(4326008)(8676002)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +/CeseBlY95e5aiG8p/Ps8YXI61fJlJTldjmPJ7vDyeA054KISJQs6TXOSYGynlkaMKE7b8X+uVkFhjIzeVnAT2vujsr6GkqfZpnmq6T+ywssaQxBgAjPY6axhvaVyx1CtHwxv9Jbf1DePra8nvS0SVO4dPwYUTj+RkHWWJ4xGhVC4iTEY3i79Gu1c9QzCEKLQSqXKZe5YeAQl3HW3E1dSeuCu8kR367LC4QUNrInWIOEMHgUHIpXCI+lfFTbBy13RszxyKpRL/4yy+C1I9g9huGpkYdzrcc9rExvuAfmEsToG+nK4szrPoNn5FD1X1rFvugAScer0CaFFI5CLffFeqfytENd1W1q9JCHGEU80+K/TkUYaDWH4v+rSdvRZRpRtkBN+zjeIFdZRZeExFz/ed1M2s7ou4XWMc5/ywYNnHi+P4UcQk/8pyTE3SroIkwBbVBqeu+AhVBBaqDU9a8Njm4vCY8QUjNX1+KTbzDdKfSLbUab1WYle9MWGeL6qADNJ7dl+VsP/o6HUQpNTM4mvaQc3d+Bv7QhUPka1Giw+upZAbgMK4tvNtG4Zfv0JoOFeTp730Dp7GY5VIQRFT+GCQ7dP7brL5raNCOv13ZDwKegRiLp4P/3bR/CoOsp5d1/0g6F7GHEIv2nRqT/u+t9gQLus5elN3ORJ3n1LSCr3vbRUD0G0+TImIr+iTXX7miIfB3PksmlrHxq49PVHbIoAaOtIdzChiCNBEcLYElvTcN6jXV+DqJDv0QNA/CzvWjt7N1FTVfkuqB2WBmfneejZhslvVdfWaXPZhI746bzSZGTac7bRUPBb0BPHPkyUGUIB46e7ZVTUWnq/JF5u10q2aCZq1kY7+HvaaZz8MCSRPpDUcQgHt7SArKjJn9XuWXLSd91kKv+Wg9QaRqZk4Ri5Yo9Ttc47+vGyQeoWFRuTrf84S/ZYNyWVCO0agK+OucsdogLbcGfSljOKGE3fKiEf2ObsjcHvETdm/hSlloBoi5JKQbCZosbr1jOtWm6G/yT9oGAv9E1ZoJhhX48ZfQYfhQkuWheNyW1xEGxblhuHqpJ37Qx837ShMnfz90elqJOa226sJL9Av5goahSOgGuNrarwDEV9Ab0qBiJpDSoDxuhvE++NBugownU3BTaZoTzfqtm9klzkhG/I4dbjon2W1LpkuoBXndFYsJsvPsqm90CO38VjOrBE5lsjWfoQqE47W1XOl1EccYg2prgKmsdEZ7uRTAkNAudXPWo43qnCyLTSqSdA4T/BscPOxHBtz3OiAlEvb6EyRvYqfyuYzKDbwcoLN0EdenbrGXRWf6kmA2D8doKJFhWBwz88uziR+1ygriSLdzsMQxW+srwHPl4JF9Pyke6H0wAYZUV5WiMMUBKOYLtchLY7GGNjZ2wqATai9UeRpDtNFL6BsICIDVw175NkKICKufTP/ARng41U7bmmF9G5PcemVG48pRqonvPUQMhqeQYkCIKtCUKe7zkERvPWZrWIdyLH/hETX+hmb1zJEwHAqBe+JYjTwYwviSNspsx1eWl0KzI3sq7YGd6J4WQvmuOLtZ3pVBbNU0ujvtzVxJISkPPJlN7iVShzC3LFEKklEaxT+/gbTmSB4bQA== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: LCx+7TTtqCxso/1nKIZiPPUsRlj/oLE88Piyj7ThHtOYcsKluJoNsGiwU0z85MtU2VXg6pG/Q2lW5mMj4nCi6bBrCvhltLh4VcgeTp2st5x16kTBOtDUHNAmRq75Oj0fx++8vdY4CEw3sq3W1oN3BqXVyFityECF3a1fA7ACsTP9Vuy+YEDZmlzZnd4f0vCCLaE0AlCdkZpi99iBFE1X0BHYqG9tQwd7usfqiDnHYlYsx4I6ZAN0Lr/hpo9Ws2eiF+0vqEX4ujfkdaU7lUpzZhO2Xss/fwkg/sZntqK3JfrQtKoi1hxrZXhqoXksbIkuNASjNt8BITbEOwth22YwOjjIgqT6BYgqvsTVTXpfRVzhSJ0x77M2VyvTGkgommWXJ84yLWtUq2xozvXUi21jTKqUHImvkQU4PX380Uu5lqY1czOZvecYaK2Rfgq067xpPNoqzL86X2GZYGjQX0McDXPgY7nCFmwzIqg7Psz3xdBb6lYP9r7z2LJpmCBhbNqqR9lx3L5W6sw+X0lYurf6Cue+TxjXfqy8Vb90qaYtRhB/8FbUlo1w7c3VxOXjDm4DTu+KHmLjcfRXBHOSimvz6Q1KkF377l2GfKpkumzrcFyzbulj+MNGyq4DhQLsLXAn79CAFXV16EJKzbF9EaLOigbdQ08QfwXoWv4UheYwWmOKSOlVoV7/rDhBocoy0xIJlM/63b4uaI0+1ch4Bky4OGxk7eOigy0wY17uAn5J/hjYbwE1rkh627vlllpChNihpUyiQMOth1sG9VTGvfkJZpP9TcjrRozsINMdAzYlq59jfJMQd4B94D8wKkN2PiJUBft9QW84peHa21KVPpGbemzqMTRDxC7DEQS1WY1+q93p4v335o7ICK6rKjrMTnRtHQvPpYsajzLaCzyAwC6EVlCxH5X3/rUD7KWx9Vxy33fkOw51BHa7KjyKySRz3b3YRZCOUzuhonSD72TsWkMYIhsot7eBHKET6/eZ2JblqFRjzZ5PtZyJw4d6ewfiY1uNFxJbRnji0oh3ZXqIt3qt+MquTs98KG3SSvF8MMKK1J85tqVBIdNPvq6At2fgt5RQekHsoL6K8OT8iA41i9oZiGP+e+Yabu3sWZ0GOfktVMeQM1BuKkzCNnfWNNUvDyFXebY5BQX3GKezeBUNvG+DI4rcRifn0bdIhO/4nw8wPDEqjFEkm8lF3Lp7Vj/hXEvMrpnfO9I1N1uDLK18qtWqwTiD91MlJMuoDqRaKfAvn+vLttjXwWSbq7Ti5Jz4754XQ+FLV3fNnbpu18ufDGYInzmiw0VuUXoNgpsstV0LyahEvszjYJ1UJFywy8ux6pZ+0iJXPvVTiswazqR8xiOm1b4ebHcx4TPU/KaxZYmDLp2nFFM6Q9AopmH2oaQwESvzfnkdUQbjZw10eou3Lty/mwVgtF2ajIqMK4CNY5X0nAxbx2LaJBBz24Wvr67hQXM8Vz8D1JLS5/0hDnrFIt0FnVBBeVl6IoLKfV7yVwglao0cDEAagMSp8EOl0A1il8iYtzHq15xdxgrDrgeVZtkfVg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ab9e4a8-eeea-4599-c2c4-08dbdfe6adb3 X-MS-Exchange-CrossTenant-AuthSource: DM8PR10MB5416.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2023 23:10:05.5080 (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: vLhjYNL0kdzDNHPPsX+neUSOF7lg1wPFI50ovP052Z4JJg27xjVWJeBByRDMDiwG4U17JZoNbtUCB6GoXB6shFnABkwZKFoa7XMpZTru0C0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4369 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=977 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-2311070189 X-Proofpoint-GUID: JorJD4555ZgyZRHWCma8OOr1r2tuLm2r X-Proofpoint-ORIG-GUID: JorJD4555ZgyZRHWCma8OOr1r2tuLm2r X-Stat-Signature: agr9eb13oo9icpe8btkbc1e91aqxu7jb X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: E170840004 X-Rspam-User: X-HE-Tag: 1699398635-396122 X-HE-Meta: U2FsdGVkX18bALoI0itc94GQZhkF+2CpC3T81/4BtfbMPG9U7cj0VIrpRb93s0o+7mYPUrxKzGa+5p7t8ww+EpPYlLLfYPEWJKYRDcrwHZlkM8b+9/G1q50CeGq9Y/G5eg1Q7Y9hRvz0Q/K0ZzkoPdVU/aMA5t1Mbb1wizRDhnrX/e34FG1G02dTvPi1mDxSYX4CJmecCWXTPkHuxwn1zjc14DFGqnhw6dRwQ53JlpGHsG82SvDnDH1lDl1ARvwy6RsI5/iwheV2uIsTmA1h+yRlrhl3OP90dbGNYjwuOv/Z2wlezBY1WMyHLmlf7soMUgtLcyPdl3K9cR79SVLB50dl2x9xo3vy3+iwyicGljGbh7i5vuSf9HZ1vtYB3ryAmMM/dl2SHNwlS8jMaatNNvUVldNOsVXI4PtGrRs/GTSfYs31SEUCBQ19iOUx98PXfGNst6yxJAIyRj1OvgJDrcE1cH1c8pg0tHxJrvtUwuv+l8wQNvxIN1WybUaUYqa6UHsKW4YVAtJTq4aKs7N2AXbXtBiDSFtf7YL5sjHWWe3tCNxmcHj6VWRQBbOGGz3aB+pD4RllPm+vIOf9hQI8DEuWKhUYHOgTdMKgHRsejdKIOqbkb4HuQ68Qs4kxj52AtJHAoUNbGdoYmcErC8bOTOwkbgyq7jAt8CNwq7XZptn4/ssfqs0qt2VxNoe5/ER0hK65qvLNZQjm9KtvB1uwtOMaTIhccKlan0svKDjxKJ06tXfhYaijhkQ2+4E7JJbh4ZlM0b7L5smPOvgH2tDLDUOMGkM1ZuN4uDPtQ/54SnZXDHRwigIDoOz7TQn/4LsnuDONE6oiaKyDYIF7GOvAZbB5qRr9En1QLyrX8ouUuQRSrCRZafTzjhmZTznL4BEPvfzRzm4T4qfdzug4WSFE8d6szGvLlwkVFmFSIwHq/kDj5TETYNCFQTp3uTQDPppQOGQkU3glxCVZOT+fBYC sRPkZTn9 W3moSAGeGoywi9rvZVQFHYCCXxFY5O/koRnzuYZft1Y0ratcGH8kbQRR3bY3PT0xF7nmHdcmgSFMtFgjBXlDYfhSUJFAhK5h60FJtqRgNYR15uQfi5hKY5oZ7E17aUNcu92B6CllWgfuR7U2+/phPMcxdWIsYYI7t4pJJprz3RTLqPrOY/cNg8mOVoKHgFbmTrjjMNIj1OxY8LsANlALT/kIdkdPNVRQOnVF5P9mLBbxkx9du9gzBNsB6HKU4pTD/+tTQOnxcDIX6e30umWX4qNlPOEWGA1QnuF89POtVQ7psxBhCiCNUJvV9lSHmKOFFIwvCo1wyba4cHn5G5v/gMrsMKLXx1909X/MtKr/YV6v7NfQTpvS7a6p0V/57ANIsXAhJpI5GRMPiBIrKIUw3EQbhxyLD8TspIdN1XphHRp42NDmILT/7aAUPdeqg5OawpdzeRf1NbteHG1YnIehKT27ZEJVFM4OQK/5qsjdTm0hW1YG07fUTOdO62lOpa4XrI4wtkSSkChujuhVL1E6bbsPn8dCTbstMzE4d5Pf9+/56bFyY+3OZ+6dyZQGoRi7V1kOtIM6pSYm57NZ6HO6MNB+3+ep32D7Br+Aj 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/include/linux/sched.h b/include/linux/sched.h index bae6eed534dd..bbb981c1a142 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2083,19 +2083,11 @@ static inline bool test_tsk_need_resched_any(struct task_struct *tsk) } /* - * cond_resched() and cond_resched_lock(): latency reduction via - * explicit rescheduling in places that are safe. The return - * value indicates whether a reschedule was done in fact. - * cond_resched_lock() will drop the spinlock before scheduling, + * cond_resched_lock(): latency reduction via explicit rescheduling + * in places that are safe. The return value indicates whether a + * reschedule was done in fact. cond_resched_lock() will drop the + * spinlock before scheduling. */ -#ifdef CONFIG_PREEMPTION -static inline int _cond_resched(void) { return 0; } -#endif - -#define cond_resched() ({ \ - __might_resched(__FILE__, __LINE__, 0); \ - _cond_resched(); \ -}) extern int __cond_resched_lock(spinlock_t *lock); extern int __cond_resched_rwlock_read(rwlock_t *lock); diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 691b50791e04..6940893e3930 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -8580,19 +8580,6 @@ SYSCALL_DEFINE0(sched_yield) return 0; } -#ifndef CONFIG_PREEMPTION -int __sched _cond_resched(void) -{ - if (should_resched(0)) { - preempt_schedule_common(); - return 1; - } - - return 0; -} -EXPORT_SYMBOL(_cond_resched); -#endif - /* * __cond_resched_lock() - if a reschedule is pending, drop the given lock * (implicitly calling schedule), and reacquire the lock.
Now that we don't have any users of cond_resched() in the tree, we can finally remove it. Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- include/linux/sched.h | 16 ++++------------ kernel/sched/core.c | 13 ------------- 2 files changed, 4 insertions(+), 25 deletions(-)