Message ID | 20231107215742.363031-12-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 E21B1C4332F for <linux-mm@archiver.kernel.org>; Tue, 7 Nov 2023 21:59:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 19EA08D0067; Tue, 7 Nov 2023 16:58:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 126488D0065; Tue, 7 Nov 2023 16:58:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D0CCC8D0066; Tue, 7 Nov 2023 16:58:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B3BE68D005E for <linux-mm@kvack.org>; Tue, 7 Nov 2023 16:58:52 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 7C02180BBC for <linux-mm@kvack.org>; Tue, 7 Nov 2023 21:58:52 +0000 (UTC) X-FDA: 81432523704.02.9DAB473 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf21.hostedemail.com (Postfix) with ESMTP id 0D1AA1C000D for <linux-mm@kvack.org>; Tue, 7 Nov 2023 21:58:48 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ipt9p2RP; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=X1Vu+anK; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf21.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=1699394329; 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=77+FBkBUzVWyDU8YjIAJVQ5OkN6O8nF00abGUXbnSB0=; b=KQogdkL9YwDDbgN9SFKXfugD+9q0BGOcsRaFwlGwceSph3Bqy6MOdG6Dml4hy03zoFWRZn D4ZKlyKfHus3n1n3bih9JAnj68Y5BP/TSR3Y6qImyCHOPGtvLIY5banFzx/SCLZp56hSJK W8TKtunWzm1I/+Qh2H7sj4YcFg+McDs= ARC-Authentication-Results: i=2; imf21.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=ipt9p2RP; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=X1Vu+anK; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf21.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=1699394329; a=rsa-sha256; cv=pass; b=o8o0DwgE5ji4IVlCvS1h6rSaV+X/JZVPsA4Rdg3kEhDWJE8qL7n6fQG/tQxVnEdvG3p6hg sSW/JjYsYyeWBD4Zg9BKzY38WafCGgjrUZzrrI/1DJOJpiNOtNDK5sV51HcYo3fdImtJGR bXWmeVlxznR/KWi9HT8/mSXYcRyUzUw= 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 3A7LJmSr000897; Tue, 7 Nov 2023 21:58:22 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=77+FBkBUzVWyDU8YjIAJVQ5OkN6O8nF00abGUXbnSB0=; b=ipt9p2RP/bj4dLIt8tlb7rC+gbAdegH+9BfhPXV3IfgFPSH0Pnuexp9M8WmOkoPeCaM0 cESXDzj0o/5agnr2uE3R7qwKruY8VxfZ8Z355lkqz95yQBLnUSgjhSv5LqF0U0QkFeCU jFL+2/LjfMm01NZvBBJ3XZN2Yc7RWLtiWQ9I572vVTKfXH3WyqMLzxE5gj3D4Ovc5zQg P6SK1LVmtQMV3ErM6OTZ2MKfGHhw6Dz9a1FNSEgcmLqYa4wCX+k55omysymdXLLxCKP3 GPrYdEaT3jcAlBIeRM4vxRBSrDruN72ZVCWee+M+BVnzcjmYdmswEtzL9F6lj6ZfJ+Al Vg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23g2a3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:22 +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 3A7LIrDQ003912; Tue, 7 Nov 2023 21:58:21 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w1vsh7b-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:58:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iGAsJfsn1PpO+ucsOg4vxuLLx9U1PA5gcvqqQWlq2lu2gpsTFXLodpi0IS5UbjSKUPu7wYpFoUtoOee4U7SL5tBwCCzbXUGeIPLpF4RdcM7Zyqy7NMJsgAlDlGbfEs5RZ0ZJ2IInCuNu95JtetRz2EyPNhjxW8l0nlVoB3n5keoh8pEYMyHVKT2U/j7FLZ5IP7y0w9ehdxwutc9Zyuu4SHUwr2tT/Muq0SmuJHIDlt0a6SounwIjYT8VkzWOlv9JX7EV9g7BOA7cT/uCs9aFzcw5JRLWoRzTvnNoHFw07S9c1AjJSY3OUHGe49yxuLSl4bNqCAwhWp9+0Eg0p0KpZQ== 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=77+FBkBUzVWyDU8YjIAJVQ5OkN6O8nF00abGUXbnSB0=; b=HWuF0y8e7vqIeDWWyhYQg1uIvfkwI+IRCGOwsKBcoVf4COmb3TF2WFAKN8nzhpFILonY+HJSWMz8h0zUHOaXB4fyG18bTamMVMHA84R+lQdqtwIXnwThoddO7vMVF/3ptlkNCOX2qJFC+2HFtrFT+LVgtpGwbdeoIsJ3DJxzxuzkSfXz32WpMAAKn+2VV2Tsf05+fYfzySwsPTztpELN+mI9KjLhWZAjp/Vd1D+2m0w+M9geQwdVerL2i2uRqOVwaYlePzvl3fk+7Z/wtPBzncxJyLqjjbNM0N0Prf859+QQsqDmNXNT7w6T+ecT4Hb/H4K3ZDbLfeKy5XkglnnWFA== 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=77+FBkBUzVWyDU8YjIAJVQ5OkN6O8nF00abGUXbnSB0=; b=X1Vu+anKQeuVEqHTB52YirP/BUQjC5DhanTb5wU2yC8nhFxmI+wnY/fKcZEOjToooQkgVO2e/K0tS0/XpIGen4iiWmF6m4i3qEywW/+zS/gBIFSD+b0FfjchbfNPwUdcgnIkO6RJQL3eIBlI+B2EOoE3StoezxJD/M0xaPMng4A= 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:58:16 +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:58:15 +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 11/86] Revert "sched/preempt: Simplify irqentry_exit_cond_resched() callers" Date: Tue, 7 Nov 2023 13:56:57 -0800 Message-Id: <20231107215742.363031-12-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MW3PR06CA0025.namprd06.prod.outlook.com (2603:10b6:303:2a::30) 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: a60f8f50-ff73-431a-e8a9-08dbdfdca500 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mBg3kSVTYjt6TBbKcsuoz1RUASbC9wSHhpZHcUzK6cMzmZCTs+mz9iuXKYL/SrD8CkNmS74uf8K1+AKamzEbywQFXlW+06DedlaV8jLLycjOQezf6O8pPxU3jrYWjmH4h++uZSkdbe2jwDNNON7xNtvVsn7zGzBggm8vZpdkGyAhjmZcaKIIIKrUl1OOhVCie9KCg4YGmvdnoFEnzVdO3unRH/HgCgFcZTztvbtGv8fCwi48gv5BoSOPoOyULlCgFNAS6ESuNuqnaKjPjX6VrBwMcSvaqusIJuc8TQBrS9UxT2TpW2Ib/DsQ/f2w9xdvZwxu3opjeu+mryaNWr30FHd1P9GGLkRX7Y39pA7Jw5Zel2z2610+2CgWe+TWTSt5zMkDUg83eM/DIBoNwdDfspcF3cNRB1wyAb2uxhZmVw2PWAhOiDm08PBOjSC1VxGOx4IyMieqBD6ht4KSpfioHEkngL1tTPNnYD6HVGjmW7TdhQzG47Har53WXmdLwhB0nbS0D07NZOpZTV44ErfmB1ayh2qm2dmTxyrjhsX9FC69UV3xr/nu6p4Le0kDgc2A 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: /hNybEJi/4S8nIwQ/jm3sVaNhUw2a0E9HXgHp25tUbGqvThSSqcY89TjQYQnNecEo4fNhFV5elkRXIYWAkzhj3LSzZiaH72IFNjp6lfU+pZO2LFnWacFcyZ7pq0y+hb7GQq9H4C8//88It/G+0SEpNS8Ujp8ud3W6w08zhXJxoPzkyy6xIGgwGVUIitaNetLM52YnhTmblTyGTcACfNC8zVYxLhV7W/SHRYXs38hWg/Ujray+MeXC76VrkX4WusjJK0k9RzpzJixE+Tfab6A/Bt7K6O5i+nG2ItcA5K32FqJrDPQOrUpLzv9WCkOj1xRT/OrEFLSGng2jVFRAXHvE8OX++Ab0LJ2mMKSw6Lup9UQca7uRwIhHgKJ+mew2SSXiJB6Tts54tzyD1WELzIU5XcfWNWGZ/tbJoBOTEVwMrcXz0favNbdAaDL/8z7WpacH2gkfwMIK2zOCG0ZwvVfKpaI/ikgcIa0lkOLFmYw+jQeB7r9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uWrTCgoqbOHz3Y0geLDLust4qWIfaksVp853eF5bYWOPnUnBaWNFkKcSGxlVhGanIJ/HviwMQIFvIqBaMYrioqhI+b+CndwOcDsQelxn5ate5kuHozTaYwCFzJx4nO38MPyI8B85ydWNwfVqb6maA8LApAGV+liVDjX2CuD+HzeNlUUDy/TdL6/qbyDO7vVG0PuOrE8Jc+a8iuCIm14SyQ4m1YYWOpFvRvIl0SE+vK42stWhqhud4k5QL2l7hsZUTbpAwdo9xNMPkMGlNZIkBI/FYecHmUKjv14JHDAv9eQwQ5dpI4fjY5QCxpjFmXiSfFcTf9Zn8SFnxVMJ7dM3yWJecYGH2wIKlSm53YIgsCfAfFfUkdn99n+gBOIisrjZUuU+mZaJ9VPzth+VBIO+eo5f2Vz1/+mubaopXxMfLYy5Xt1zVYb5LxC76SLBX4aIUfjBjXxbWMo2flh1AJ1sZPhsTy9JgY2sYjQkAoOxAASC2kv0appSVSh/KaJDfjuNZx690Z3ShJjLs9r6Txj28esJcM4v137QBCX/t54wWz4SQl2cSJG78243yd7liA1OExpyhQlJv4v0A== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a60f8f50-ff73-431a-e8a9-08dbdfdca500 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:58:15.9016 (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: Akvo/+2Ak/oL7dEBLHJz/yNcmsSPecmefS0pI7S50R6SqoQpFf4d8PeSFwRYPpsPpabfP4SQ3cKH7RMgP2lzqxyjJuyu3Qyb2Q+bTh8LqPA= 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=871 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: VCxrgEeSUzfhKW41DeMbYxvg38-oY1_x X-Proofpoint-GUID: VCxrgEeSUzfhKW41DeMbYxvg38-oY1_x X-Rspamd-Queue-Id: 0D1AA1C000D X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 6dcb51wkxdu8kb7u9oj3jgzranrndqan X-HE-Tag: 1699394328-199467 X-HE-Meta: U2FsdGVkX19QU2OjD8cOTXnxvEC0QjyT+QibYQteUSgHBH6hUmaIUTZslXi4bBeiNo6sqe55CiZJtCRyZ674L2C6Wy8rGjyw+JMIpbJc/Pv73UmjvfepEzglH3ucAPzsXbSpTj9iNH4frwmqzDbKTK2UXATBL3jDBWlR6C8r4EJvBxP2Ik9ubact/AtJdNM7ZgoDpmTqTeAh9ZTPxpB3x3kpVQnvoOLpikaWl6XBZTkzl7PMZbnlpLs1He+7K4EaSlFyokeWVtKyfB8ec1240K90qJo692bYWQ4hcJIbTyfG+WIelPx8507IpEZcZ5toyjNBSiehJev06Vx5/EUKdLzvDTE0qchAHku4721LevCBQkaRPr7/SzbMRpHAzcN5Z6TAyLuDR+I4B6PijrQH0ip1MQRvE5IbpisI0tLKzDR12Own38y7qaw8u3txuCCt0rHLLQnblcmy5tR9km8UWxvIoPVH2hSd2rS8M5cWp+LJPNBnFlBPAtB1RvMFW5DOHRHG1MEHvPdJsa/0z/Mj/trlcV1dn7FNSu9fhjqHCFoEgKoizVFbzLpV43F7ptn6EKyIiaUsEtaSLYZwdy5NHGqkKZZrUnMQU1GfTi8l+pD4YUIPZR59m7oXfHtgfy7uTKrgV5ykWncT6LrDmWWRhyX2j0rSyz1a6lmxJ5/wDN9aAkA/1xCKttbY4rmkRgfdb4XNfRcY9gRJ5mmrjOrBGFmVmTA9faJVgFLRBb0Wh9UogdqUYt24125UeY+9WcycaKaWewGycB7APV/uAtyTkod9d0r2uxlYIEP8rjDeTK6EvCMZAOZkkT3BO6BHT4LYFfX4g3Y7EijixMqRFChhQY8qXMmx5i6n5t51iWWUTS0UB0qVF9UlW+wbm0Xrpb/E6v0kaSIK3e+npuYsmRFfL4NbqorqI9Lf/6czNUYRYKKWohAmk9eEdPn8tvLd6as/nEqi3hfTSNiBrwZM//z MmSoNQt1 4ra0WYxBA1vWqzTJgW673YhnWzpRrH+kbx51RVtJNQJt2vPMw4U2s50grJTNxfh5zqkfPZ006OcPx3Z5qR9UU4gbqDtCui5JkE9JHOknOfFMBEipIYsFSpe7ZiyB93SXwGgurK/DPml0w3VkH8JcJuyRfd58SZrbakbsfvWUPjGA9O4vV6OlFWMO8I4sMH1O1prxuwq8RjPiePcnra4VjdBhWYHrpnnwTH3f2ZS1dFNE+xxYFlj5nfiIbTLXdzGLOUBvz1J9m9f1iWZzhrZomojqoTiMykSSD5crVt8WK6pumLU8T5PA2p8MIjyju08fDwAMtg97mgRKKUSBrqlaah4O5f5p+HXGv00AcTdB74DMU8F25uM76TkwAubs4pRR4EioFtsMeZ+GcFQuWAbNUX2xHQXrd9TEe34PfE0sZ4eROQWRj9EU831Dsf0W6p2alkPCnJCWxAUzvzCjypadde060Xw== 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/entry-common.h b/include/linux/entry-common.h index a382716ea7b2..6567e99e079e 100644 --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -414,14 +414,11 @@ irqentry_state_t noinstr irqentry_enter(struct pt_regs *regs); * * Conditional reschedule with additional sanity checks. */ -void raw_irqentry_exit_cond_resched(void); +void irqentry_exit_cond_resched(void); #ifdef CONFIG_PREEMPT_DYNAMIC -#define irqentry_exit_cond_resched_dynamic_enabled raw_irqentry_exit_cond_resched +#define irqentry_exit_cond_resched_dynamic_enabled irqentry_exit_cond_resched #define irqentry_exit_cond_resched_dynamic_disabled NULL -DECLARE_STATIC_CALL(irqentry_exit_cond_resched, raw_irqentry_exit_cond_resched); -#define irqentry_exit_cond_resched() static_call(irqentry_exit_cond_resched)() -#else -#define irqentry_exit_cond_resched() raw_irqentry_exit_cond_resched() +DECLARE_STATIC_CALL(irqentry_exit_cond_resched, irqentry_exit_cond_resched); #endif /** diff --git a/kernel/entry/common.c b/kernel/entry/common.c index 38593049c40c..b0b7be0705e0 100644 --- a/kernel/entry/common.c +++ b/kernel/entry/common.c @@ -377,7 +377,7 @@ noinstr irqentry_state_t irqentry_enter(struct pt_regs *regs) return ret; } -void raw_irqentry_exit_cond_resched(void) +void irqentry_exit_cond_resched(void) { if (!preempt_count()) { /* Sanity check RCU and thread stack */ @@ -389,7 +389,7 @@ void raw_irqentry_exit_cond_resched(void) } } #ifdef CONFIG_PREEMPT_DYNAMIC -DEFINE_STATIC_CALL(irqentry_exit_cond_resched, raw_irqentry_exit_cond_resched); +DEFINE_STATIC_CALL(irqentry_exit_cond_resched, irqentry_exit_cond_resched); #endif noinstr void irqentry_exit(struct pt_regs *regs, irqentry_state_t state) @@ -417,9 +417,13 @@ noinstr void irqentry_exit(struct pt_regs *regs, irqentry_state_t state) } instrumentation_begin(); - if (IS_ENABLED(CONFIG_PREEMPTION)) + if (IS_ENABLED(CONFIG_PREEMPTION)) { +#ifdef CONFIG_PREEMPT_DYNAMIC + static_call(irqentry_exit_cond_resched)(); +#else irqentry_exit_cond_resched(); - +#endif + } /* Covers both tracing and lockdep */ trace_hardirqs_on(); instrumentation_end();
This reverts commit 4624a14f4daa8ab4578d274555fd8847254ce339. Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com> --- include/linux/entry-common.h | 9 +++------ kernel/entry/common.c | 12 ++++++++---- 2 files changed, 11 insertions(+), 10 deletions(-)