From patchwork Tue Nov 7 21:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449411 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 EF251C4332F for ; Tue, 7 Nov 2023 22:00:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6AAC28D008A; Tue, 7 Nov 2023 17:00:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 632D08D0089; Tue, 7 Nov 2023 17:00:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 40F008D008A; Tue, 7 Nov 2023 17:00:52 -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 2563B8D007C for ; Tue, 7 Nov 2023 17:00:52 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id EF7A3120B5F for ; Tue, 7 Nov 2023 22:00:51 +0000 (UTC) X-FDA: 81432528702.12.BEDB720 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf11.hostedemail.com (Postfix) with ESMTP id 79F984002C for ; Tue, 7 Nov 2023 22:00:48 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=4D8I1DjX; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=IQDsXQXy; dmarc=pass (policy=none) header.from=oracle.com; 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; 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=1699394448; 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=zDfCfQkBw91mMW+9GuR7IRCns/x7hsQuyMEDUgeK+cA=; b=bIVFFZEZQrkyDM0m94rAgSchbhTvJogWe4GlZK5p6khi47oMd15YBolQqhA0jAoZGuie2C 2jKPW2xSrVlPsJ4sDPv6O+3FDszLZG2+JQPSL4d6m5ICvIcsA8RtEEclBqdBpe+lILzcQ3 wryfZ3EClEMQYtIJkggJ55jCu1MSypE= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=4D8I1DjX; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=IQDsXQXy; dmarc=pass (policy=none) header.from=oracle.com; 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; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1699394448; a=rsa-sha256; cv=pass; b=zpEcI/TZNhGjiRVh+/h0TKU5jc2+JCkHXUpjYGZAnIJiV7igpUnUN8ut+E5qNqt7WbZAGN ukNOHTlgnoPfL5DnSY3+ApOZMHbY5M5H6+QIrAOfh86ygXA6oVd52TX8a0R3QbDb0shc7p YJiAxldMXYsyp7Zwt+QrMY4XFy0O4uo= 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 3A7LJODJ032058; Tue, 7 Nov 2023 22:00:26 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=zDfCfQkBw91mMW+9GuR7IRCns/x7hsQuyMEDUgeK+cA=; b=4D8I1DjXpEzbQZh1jI+cEY5H+JZdhmkqaB+ACgPQbe5d+zCu/dLuCxWX+nV2v4UqZkNn 5cLymAGpp/jl3e5pBUQl1lak+G2lycXlWASLGUAU1poKOiyllL9JwxkEP7pOrVTmQwBD FHQuo0GaqrqGPQPbMTOY8nVmGhU05ZV0mdGjz70PpqKGFyLqx80JPE3o76ik7w+55cne mDbQYU5gU8dv1+TZNYILRf1xwBv4qPtskDQPSqFYMACPYp6BK3EAHIQNtC5Ky+4vPeiM +nG6yjJSim/rwEspNnHpiUitcwHdMXSLOKgn15yp9h+FYdxJdfzxsKyTkJ1rDBDoeuCt hw== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23g2e3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:25 +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 3A7LIgdP011085; Tue, 7 Nov 2023 22:00:25 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1tskeh-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 22:00:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V//QWaNdgNCMusgw/N6DBKGpNQx4N+Ln6N4YsJEOMN86bQMOMI/OsnwXoFWz64j3izIDLJ6892W5HxTNVJlAINYRyO4DVV/4k91FdSzSpmUklRccBOcEaCe7gWWQyX/nKBdzxIXiyYKjpLH8QhOx6xGsYRMxEBd518MUfD4LHlhauXaUDz7cKcAeKQ+0eoXJFA+X8AIfgeiO3CjVjQrGIAuXtLf8PxymmzsiQc0aasEjjeVSlsUTgdXjIhtTAeOOsDIY5htBz62KomknIFP+Bq/gckzfMlp61DvEcRpdpeMa5ISmYMsXHvxZtfLIQNjbPnDFt1bg1LadoXXPWSo7cg== 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=zDfCfQkBw91mMW+9GuR7IRCns/x7hsQuyMEDUgeK+cA=; b=UHfsfFlBrdTq6jvn5L/SN3ogmAicyUHeJ8fzu9TC+XjfdlMrCnE32JFv/0pC6IE7tFo5jyV1VsYxX417gTNmOB81Gs1hDCYkqiGZwFqHTuShbHZ9kl6t24bTS5JMIQ9+VBDWrilUImeWjkZAXuoZ3+czyYKAszXmPJ4UB0+DqBJCXtJO5kU2fdYT0+tL0sLBnkWW2aLhnDJ0nhk+alxhSwfoNUmvAolwLTYlKJEqa6lgLr3mZweTNOZOhboAVcJ7iy0FPP3KJQ1tenzuyT+CxsRmXIMir17wK27vkNhb554NaVEeuISMRfBN6hH497wSVkljpvRR25TvgbdVrCDbdQ== 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=zDfCfQkBw91mMW+9GuR7IRCns/x7hsQuyMEDUgeK+cA=; b=IQDsXQXy6l3cyFd+yLaMBcOTrYlWB7MJbmdoTwPMjo61nLf53VfTC+UO591OQnLnRaEWRzxgieGFLG5Lgrjm3GRRSHegwtbSBhvdEwR6/9kSNkEkDB/25fJBnjiQRHddTrsuh9k+3OPIwWSE/g9pGNDLKu+IOS4roos0uEEHnMw= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by PH7PR10MB6275.namprd10.prod.outlook.com (2603:10b6:510:211::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.27; Tue, 7 Nov 2023 22:00:12 +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:12 +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 49/86] osnoise: handle quiescent states directly Date: Tue, 7 Nov 2023 13:57:35 -0800 Message-Id: <20231107215742.363031-50-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: MW2PR16CA0022.namprd16.prod.outlook.com (2603:10b6:907::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_|PH7PR10MB6275:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f1c91d6-2397-45e6-5d39-08dbdfdcea83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ku2vLMvqT6icIo+TmTby658ia+Cb7UAJlP27rT68Tl/vp0lNKftuImsAPSiLB8kci9bIt+c4Sb00XQfZx+BhxrhvsDXkY0QuEiIdv1ziaTeY1VMMpa6lFtHeyl5wQmzJabvW8cFmFKHJxzamRSzHkA/ThnBWvl/gUYb5Pw2XFvBjbqw5uE/XQ4Z3xah73VgZt875fSe0d7XljhzBRzVI7kWqxsPxQOrIWqtmL/5QTXr0F1D2AkGiVGZsLiJmuUqbEbBRrB5YbE2cu7VvpuklFFS0eNTNfPK+14necc4uCGu9ABLnH/8ABmDh1jdzl/FI8mYihbB/sv42l3ioJGyd0l9iJKqMM6nTQB2AdYZUtw7BuBXYF2jwgN1CjX8C45eQycyQI+yY4zX2n4bvDq5AhWmAOplsVmbwGnLsWRNTAtZiD0uv2xRoTX8cMokyvb78ofuLKg0orL0V66r38kHKcB/tmgnt9gaiA5kIUGPXmy0h6gF8kv2P60CPDoSD2gHuYeR2vxdvGASq6M+qcMwUT4SCRPrTI8w2C/kIkrWMJthcwDsZn1GLucahhNDIuHyN 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)(376002)(396003)(39860400002)(346002)(136003)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(66476007)(6666004)(38100700002)(6916009)(6506007)(316002)(66556008)(36756003)(5660300002)(7416002)(7406005)(41300700001)(66946007)(6512007)(103116003)(1076003)(8936002)(8676002)(4326008)(26005)(6486002)(107886003)(2616005)(2906002)(83380400001)(86362001)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4jUepuOGANNnWeRN3G68t8KHuNMBZkUZpcV3SCUskMWm7ClCJ2zlkBCGK5vpfzXcz/MJmpQ8alunrhKLZk3rjOF4GKTT8RGrKH0QM0/eeFu1unaLdWP8x7p1x8xhaEm/KMkrhCzluPgjjk85EBMPij+sQ4lDj/mn21KwbkQpAfWwg2aivQ+6M9tSTDscYasDLrOv8L4Ro2vDA6oSYhEVSCn04rXj6yIP8/QsMFoXOotCpHYmvY6d+I20M9QIwe7pqq5bG9BAk2RvrYJRbWXoOdAab1o36a+G4czq2YdZ6ubYu2/6u/mr1f8rBiU674qyYHk7/Zj8d5xZKY4SZQWEtEoKIvtxlwg4iIs6WgZrEVuKJOJID/rwR3q6Vps0bGEOm5PUIM4Ee9EFMEXqJiLlL6LHPDpJnUrMS0ng3xgQ2llPqPw177uiIpyQ4PoxykgHnVGPcv59I2hxFHv4Q3wc7rGhTqo4TJMW0C4ubOW3bHIthkqmnHLzHJuNU2wbtrPtbTAjCLCrHSIkzhL0Kcg8WYRVdHfzNuQ0r3p/wOcTDEcquGUNXL2PdL2KQUhFGKZg1VeQihiVeZB5E3XNpUOJ1YObEk71rQRXqydiypqT1OXHrW9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pBhDK0UtLpeO9G6fdw8Opw/tNd5h5y76P6Dx6/yTWO/XuXAUS1VFcqXkM4bvukIT3esTjVo2N3zz2Veva4s/3tnDP5LOoVnmLXJW0gEeq48qs55mJPdkeHLZb6r9I1PpXBl0BzqLR8pLZXNtokG5oTJz0gtX9mXv0yVSW0oCKqif3UlSU6vtzV6N/CRtau4cDBN26QJT/VnvIIxsw2tiO5JRGaIDoqsxTkPyX0H/kJ/Z/2B3QYDGZG/+uc3ilPy0fjH5AWW/TPS2E6cUYDqZRId0Vh1/DI/Buxb/RwiA4btLxtN13+2ujrcsrYpVF0uihX+aJi7OF59hI1LDqjUejZK/FX5j2y3yBRKLr31lqGcrCj0cNrNTKgBg48g0AMTytTqwrrd63jqzOtJS6rFZNZ0V/Zz62jC8vUbUGWEWHQ5IU0prJ8hHJv47/xePy8HF3V8fcV5Flw0GxHVkRfJRX5UdyIPc1A== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f1c91d6-2397-45e6-5d39-08dbdfdcea83 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:12.4762 (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: SD0lmxQN5N3TJJBD8IxgJ5H5vey+MMYHjlMBrGtc4F9Ij0bnbU0G2tWdku63U07pPxgLd+LX6/9XZKCBZPACAsXRy08LCDks3wn+qzrMI5c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6275 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=802 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: JWHRUvapECFaZw5SWt8zlEiJOnvpQH91 X-Proofpoint-GUID: JWHRUvapECFaZw5SWt8zlEiJOnvpQH91 X-Rspamd-Queue-Id: 79F984002C X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 6gy1k7ynqtdcobtfsd6h6u4ib6gbkjin X-HE-Tag: 1699394448-402565 X-HE-Meta: U2FsdGVkX18cBLcPZkwqj9+JvFw2kosa3gKnLA+WKbmMhlR/gBfX+kBRJVRNUHr8xWyXECT1F2oLHib6AVftF+v8ATfKvEU6IU2qaoxu61rvvXo64/s7gfUVCL2b6bF/7X+r8H2lbp/PDNN6rJcGm8zbmWVYSHPanVLOB18V15AvSHA7/e+KiyWWkiP0aSVvgspy1d7P2FmdDmLQCJl85lZ0ooW3OrZ/s4wms7InEO02Gbf1SN3dHew9dMjSZA8o/UkHQ6NUMR7VRzdXAlcLq0cHjFlnZlVQAEmG9IjBSdyxa0GgZM0HQFs63vdHN3C9oc5QxrW8pdfVP6qGbF2c0qFFypiL9syekRa8lUfoYtElLdRbPnIXhW3EThjHgyVbW7EkWysxeHj+VMA1jJSFk/Op6dC2LdYkhERLX7Zt0nw+Q3zDBMGAnvi7YWkEAhVWsJNOcOnhZJx5TKpRb8YIVO3MSWNRVcH0Ro17h8h3sxhiegLTnYerF0CNhV/ArvmuUDC1HalziSJ7xhhKJ6zNxuvoGC+upEhtrFwSwfAtsNDAy8sdgP1fkJmqi29Yu9zwaEsA1QXIKYCuomTPf0LVVUe0aKoagNySHK0xckFn5EG+RW52Xijf8IfZ+CKZQAQrdEF7mIVcT6xGsZklijryhpXQlbhqnqrEnN+DL4q/0GPLNJ023DeBBIAkzRRWLpH5jv+q7oGpwrXyBJZprX3/OCn5YOQCyIRnofJu2BZobsJgblx6DFVZ/usD4pTLPb+vf+lHVByZUTPewUqq3mfKCMg8Uurz/0QsNm75tqc45EX5ZQ6NQ4OnC2G78r4lPFd9Hp8TfNMKCzgWr10EOEfVJDKsguiPWKB6RSX9GNPeG03sdG/dqEQTTNdMtFQL79AK8OsF4BbCwB3v6ixt3cJYROTp08B8Ckx5x0kEf7T26j1Zml6eCk80gS6SA5BJQkOW4IWNbOC7utsB04vVJLo /fLlrES9 AB8mJLrMwKr7Ur4TkwuXHCoJqNXJiME1XoozhozgVESfKYaWlft4rW7l2lnP9ORwV2M4qGKnkk14gk4YUPJ0va0LajASAUcSrkl2rEmY0aHLKimTRMyG0U8+k8n0szBpHQPR7Osgq6yOKWlQSlZOuQ8UQYt9xOx7afoe8HNYCUFZuPm3aDFptafRPVpDZtKsf45lVQomsQViMMv1mfnkEO/88AXFF/21ayKi1kHInZXUeq0pprWBqYPcxMJ1wV/xQ9qiwAKP8/Y3A4j+lFsxM4bJuD37UKFfkRmBVJ+R1w0aTeUgUZ3J7MQXid3A7SMMKgQbeSZI1STH995sGskxfNEYvUHoBhDfVno1R8pm9bECu373nHDhtWGEgOaFS0XhMt+LA0mFqOkdWz43SWaRnFHPuqRo4z39pguaMo1yvuyhY5u8zn5/cBj/3Nn6Fi00mHIowBl7ziLmB7sxqirAmOoizxQ4F7V7cvb97 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: To reduce RCU noise for the stopped tick case we introduce explicit quiescent states for PREEMPT_RCU=y, and depend on cond_resched() (and thus rcu_all_qs()) to handle PREEMPT_RCU=n. With cond_resched() going away, introduce explicit quiescent states for all configurations. Suggested-by: Paul E. McKenney Signed-off-by: Ankur Arora --- kernel/trace/trace_osnoise.c | 37 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index bd0d01d00fb9..db38934c4242 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1531,34 +1531,21 @@ static int run_osnoise(void) /* * In some cases, notably when running on a nohz_full CPU with - * a stopped tick PREEMPT_RCU has no way to account for QSs. - * This will eventually cause unwarranted noise as PREEMPT_RCU - * will force preemption as the means of ending the current - * grace period. We avoid this problem by calling - * rcu_momentary_dyntick_idle(), which performs a zero duration - * EQS allowing PREEMPT_RCU to end the current grace period. - * This call shouldn't be wrapped inside an RCU critical - * section. - * - * Note that in non PREEMPT_RCU kernels QSs are handled through - * cond_resched() + * a stopped tick RCU has no way to account for QSs. This will + * eventually cause unwarranted noise as RCU forces preemption + * as the means of ending the current grace period. + * We avoid this problem by calling rcu_momentary_dyntick_idle(), + * which performs a zero duration EQS allowing RCU to end the + * current grace period. This call shouldn't be wrapped inside + * an RCU critical section. */ - if (IS_ENABLED(CONFIG_PREEMPT_RCU)) { - if (!disable_irq) - local_irq_disable(); + if (!disable_irq) + local_irq_disable(); - rcu_momentary_dyntick_idle(); + rcu_momentary_dyntick_idle(); - if (!disable_irq) - local_irq_enable(); - } - - /* - * For the non-preemptive kernel config: let threads runs, if - * they so wish, unless set not do to so. - */ - if (!disable_irq && !disable_preemption) - cond_resched(); + if (!disable_irq) + local_irq_enable(); last_sample = sample; last_int_count = int_count;