From patchwork Tue Nov 7 21:57:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13449393 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 88D9AC4332F for ; Tue, 7 Nov 2023 22:00:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1022A8D0077; Tue, 7 Nov 2023 16:59:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 065558D0066; Tue, 7 Nov 2023 16:59:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D5F968D0077; Tue, 7 Nov 2023 16:59:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id BCD968D0066 for ; Tue, 7 Nov 2023 16:59:44 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A1E3E1CB5D8 for ; Tue, 7 Nov 2023 21:59:44 +0000 (UTC) X-FDA: 81432525888.10.0C30C39 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf22.hostedemail.com (Postfix) with ESMTP id 45157C0005 for ; Tue, 7 Nov 2023 21:59:41 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=FFdpB0S6; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RVXNSbW3; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf22.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.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=1699394381; 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=z22EkTdon0g5V3YJu1mEM8J/zKtqGRodk90GYRkYj74=; b=ctA4pt9vYf05hyb5pd7vHPoZSvn3GMxSj7D+ca3cFSQsg+YclkvTPxAnOQvhdFcn7fD56B rqoP/8HGv5XnTFYT/2vzjgot5DrnNQQgwBuOOVFnhjUvyjUhkwI+Rkqkvzo6ZRC/63ca+t 74JWEKoDPo5ZbxSH0WCifz+QbKWbtDA= ARC-Authentication-Results: i=2; imf22.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=FFdpB0S6; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RVXNSbW3; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf22.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.177.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=1699394381; a=rsa-sha256; cv=pass; b=BA0eVQHiuixPo5C1Nl6mI6fpETfEykzZczpYPnJq7KJhgmcBmqiqgiXUGlFvE6euag46OQ 90hmIUkcfTL0OsGnD0tfZ7kGH4tV+JQxCNaM4lLG3HgGOmLGUn5IX5G2BpL7vh1WhdEC4c BxBn98K1HyJ2SBO2fpbhRB089FcB2AM= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJwFt020749; Tue, 7 Nov 2023 21:59:21 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=z22EkTdon0g5V3YJu1mEM8J/zKtqGRodk90GYRkYj74=; b=FFdpB0S6nziF8tQe76iwBOZK4El65rDLvoxjoi1SXSrVhG9FGVR28bTCIRQHlYrwmmld M9cj3TVVtyqmDI0ARowRxeIZDBMF4Vd/+1Z4mVsM9fLx/YmZUmNzql5LokAhT6sm1dMh jco00G0nuIwFR99VUW15YTrgy2ngjzgTgCNVQ4TL0s9bkdRyW6Z83txg6Tnlpo6/oWdG a7jnVgIAVR5+m4jOECNx0iGiBD4N+O2WRWoRyHPCBCP0GNeF639UsQOBdnOaazFstTnK /oi/4MAHwx5YTDLyhi50kifTtluoi+FfW46sNk2gZQsJfcNFkXH7Kzvc64B2ZSS6JjPJ jQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w2202re-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:59:21 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A7LJBP4031966; Tue, 7 Nov 2023 21:59:20 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2168.outbound.protection.outlook.com [104.47.59.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w221gj3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 07 Nov 2023 21:59:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CNLoeAVD2DRi8zixoPMAspdcYkZbB1ZTfcahWbvA2HI8AdVD7pXr+jRzrDPq756N6UCdYZMGA+BvGNPvHmza0eqGS4IPFrZsKEfancsgV9zyx7/0Dx64ynYpZG/KITxKdBdFjHL20Obp3BZZX1tpm0MkXLT4sv5ZC4ayH1xbl7VksG2sS1nHSQD49an5NU/ZyIspsWrs2FagtvKiFejxwaSyjF+brGlAs+JsHdISlFW0yPxNyiaZT3VdobuYPj4fQMBIIsuVeISLOiuYo+OkfvG3pDhcxBfDprtTs5ZtBb5E68dj7l7GLalPUxpd2zkUT+UvKcefz9uxCbFOgwRTHQ== 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=z22EkTdon0g5V3YJu1mEM8J/zKtqGRodk90GYRkYj74=; b=PWCHsjs9IV//z9R1TCYNO9LKx+AiL4gD3dSJGbmk8F+xmyVamQI6ITkxTckGrKUhjX2AqheeiyEG3857arq12Nx8LE5zhsngb63OsdKR36h6T+29/VFRfhEdBbXRBG8fUq/9GqyyOVO97/mSFpvDIpBnru2OOIo5oMo4/v7WdRCAbEdLExObGRT5mT0qcbWJFVEjfKYxg3Hh/YZFY6D2/8q854fLuFqFntdHp5eTnR+zh2QAlRNEVm/twRtIc2lcwu+cLAZn3e+nJ/iEWVWDTBWKzJyD9u/lwxQuCcCVegzvmJps3ICua3fyurl8h+b9ciyKWp7dTEVHvX3/ntXWpA== 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=z22EkTdon0g5V3YJu1mEM8J/zKtqGRodk90GYRkYj74=; b=RVXNSbW3oIB+lf1IakqO8y6twnZYRo0WnbcRmZa395DF+E4A7mP1Ek0xnnti/LFX8JV3pcqqXpks6uQVuaOFyxs9p6EvmAuKTA593wgp6tUkLeg316jiITT21aIoO4MwmU4VjhEWCefYpU1kWls15LFv5b4nsyd3fSmAR8AYgGk= 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:18 +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:18 +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 31/86] x86/thread_info: add TIF_NEED_RESCHED_LAZY Date: Tue, 7 Nov 2023 13:57:17 -0800 Message-Id: <20231107215742.363031-32-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: MW4PR04CA0141.namprd04.prod.outlook.com (2603:10b6:303:84::26) 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: 9172bb3b-b07d-4c9b-2fee-08dbdfdcca1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZT4IyBBIRtlcFMjE1DQC7VjQ8JISx6OcW35KM5S7HNeXRPzZHDxd2yZWPsEj7CqmdquxlplCVezFprhfKFClm0T3PUu56CJp1WO1UQAqLlaiyfyAgdG5b4HbgGIvo02lUNCIzHR12REDimKgTuBnHOqmqf3mgZOm7fIUJJqIyoA6A85+dDpw+ukUgCdj82fUnsQmxT4ZpZOIRi+O0gWuorCsrkw/HTuj73+AN1Rod80RQbFmfwvTw3+QkSZt69hUo1T8djZIq01pRL9u/H3OEZM7dGR6UAwYNJ7a2Vn7186pB6edxiIQcQyFBTrxQc8ic2uSWl6dz1txE93wgis2/wVXuK4Z+eO4Prd10x7fJ1/5828+YGVqODxwdFkRGgwiuixtjpW3FqW38gs32jkzq/4AWtnd9dSMIyEI336menHV6EzPxlP5zBiTK8Cg0BSq0TL23KcbciHqN5RhOPdv3xI8p2c09G2qu4HjIwLpk4fokTbvA6bx1OZOHYNvPaeI3DTYAP0/32dxjal3dL2mQNrna6E80JzQFj2BHeIVa6/NOKygcVs/MIkIlej7k2FQ 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)(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: rorD45yJTGB2LgLsaIkU0wzocT5YjWLScW2k1IA+GfvQafO2DmIqotiRfXIloTweAW/EVzrUffr3VZJEG0wmV0d9jQIp+ID1AAyt47tcdPmCQ4m57Go05Uz5OaNluMqf63ooWjcis8LZ/3R1BsXIPvpnmqSmPG7Pt2aYSGib6B70UV88f3yIxQQj23WcQOMX3DdxJxcc5Sm0fSgsTX7Az1r7UhihswH7W3Z+8l1ShFsnuw7afUW8JboPC4Cw3YFBXFwKbN6zRkUEbf/rc8+UgSqzimP+QJj7mMxXAiOrMTrKvCTFhyjnI6AHMXu9oRMy1QsEjv0iMmvOhdc1Oj2vYcclXYQ3uIjXQ4TE/6aaBMJnMRn6BbQMtVcqDihiJG5gCHGBcvWz/17+yBI7NZrKiq2L3WnxGxlB9oAGTgBeNyCj+FiuGJgaYaIbHtOp+HBjTpEpj6NflBo1yr+MpkaXSipsJf7jo1SIuIpwkeysYRmilRk2rfPAt05HWxpubNIMbqloDzk+/pNsrrkjcTIweaAknX23hpIGmbKApiCGajQbWm++yTtBluNLARKS9f/GkjtGxdn5MMFymUJL45SbNiYRUlzgE+qQf9RtyjNN/alDgjlTVGXetIIjEGW5bjbcuydbOkHR3cm3gRt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MJ6b8qSIutKtRsPw2XHBjtMkNVwGXq7Rtutym17Wr3BiA/GQ7tL0nz+lJ2w1vY8oXzXAoatKztSNOuspIB84vb6DqMLGQhiPrbTxrZi1/nPTGCvPXtq7IY05savOduc5qUnSL855AnXTReFxcTMl/HUTRPHzoF3DFo8RBLhgo53/u9WHSUWXTyhT2hhwv914PXrhvH2FsQr7EcRuE+Kg05D8qqA95vOagvmZBw1GrDlqAOsVNRdbmWu7/LlnEOaKj/wZXsXHU2ClaByMiM7QaZiGT27vO7yGhz7+Dh4W1xaF8NALG9zBDBtdHuAU3vQLEylIc9IZpMieOGKA2jmwf5U9SwftYNUiYohljwMOIHG12gtkR6nEf2Isp29AQwqrANypTT5PkJNGFLw+Q4xuuy7BhpFoDZonc5SMt+jpgKeTnQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9172bb3b-b07d-4c9b-2fee-08dbdfdcca1c 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:18.1078 (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: l3EirQ0RilBqA3JT42anADPP34gCqYyCJrlp9iBcpzag3bliSpduFzqc5MR1LU45C5cvQuU8iBW1fw917X7EDGUuu8enAs5XEukK9LMmoL8= 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 bulkscore=0 spamscore=0 phishscore=0 mlxlogscore=831 mlxscore=0 suspectscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311070182 X-Proofpoint-GUID: fyAO-9DTqy6A0oC-6bMXHmkUqVJJ89UK X-Proofpoint-ORIG-GUID: fyAO-9DTqy6A0oC-6bMXHmkUqVJJ89UK X-Rspamd-Queue-Id: 45157C0005 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: s3mfgwe1nf56nmrbcnga774qjzmx9j8p X-HE-Tag: 1699394381-847183 X-HE-Meta: U2FsdGVkX1/IDKI4MpINvSqxLAh69I6LB83umWVJO+y1SWp1uPIi7cRRMp/8qQZBGCIAbIbjD59tJmrXj27byl4BZxsssF85Fl5NBD+4ve1T0cv4N1sMDHJlebPwPjBInmPnnSjD1lYJxYNm4KzEVK3bEYcj8HSVLoVtu9unQYSD3pl7SrLvUzUpWv4HdSM61b69gyG5ySOem0HXRn0QzE8jpRPrChXuYyfbZ3rrQLMw/aQRd5xHmdv32ohClpMC87gv/CI8si5IcLVXq/oBG4TgDsBFpe4Z7eebWgOkiT+dRdngUrkf7i8HmhLe34flCnf7rxC7uwbr1eEzAYvK32e69rhmsRaE9VKd7J4VXD7GYR6P54PzWJdOWtADtM0DaHi0UtzboLELsc8KCTSQT7qLP0lr544MJzdY0zER8VywR5IdPfwo0JuAD/081RwNgQkVhgVuvj2tkSAUGQUWrr3klWwspbsYSj9og6imNY7aqLMvbSthIQtcEAMF0MKJ38kGz+GS+tz7pwH+c6mn4M5sN5cB03zPMSFkRySHnqr7XvzPijql9owoZwGzA0fEijHX+jZ8XBpO50J3wvu9v1FQc67BaOCdFOuGi70aT0/r0XzqjPwYo11G+WovY6mNW3gCc/IWhk7SQQV925WJZy8dmnrSCNNCghKvWOLlVIkT/omV6PNMvG75MN5PrjvZx27fk0DcuGJLckVmkyikBo6HfEaBfhA0zT+2Qj9DwThxedCRWhFRsygfucQw/q0eaVV2aB0S8nS1f5czsqJdd1GRx61LxGUL3kEvulZOnAtGgb2QRf2MIdFa2x/sTNoezTpxZn05IH9psQ2pLqGaJ7OMoL3Hz4yquHkxlJQGJwv/1uk2baLYdRuPgR07JTMYb9qhX90Md6NZ2gzSVjJRkMtZrQuSbcZtUb8KalUk8B9RIIynwJODgCVW22YKdEhDGUJxuIUtKky5x+cqps/ JqXlhCZz vatzcE8lDztfvCpxIEsT4fc9ni3wpoOPno6TQJiqYt7ErJOo/TShw2w7duesWAiQA+BP13ZHir6wdR3mwDVASgTJRjAjee57MLHsj1C2wcUJkZAflrRy9yJbCOSWTod8iShweSQXKtFhXzI7+RXWbVwH6FKJ/Kq71WsRF8ra2UMsCLtg3JvGJ2EHx1QiYvDzf+Bshxu/R4BKB6/bFjSVrVvIGw9XggesDQOBL7vrqH/WT0dfAeYlvxykn8mUWn/QQa0K6v34AzDFQKsHxEAPpm4vu7RabJ/JspJP9kwbrRYBCsl66n/Y2qpIO5AnkO8OjHge8ME7p3TgLBTeLSkm7g6Zvy8MthXPq2TH/awCOypmpXyzrCAIIC7fhL9p0IQQvNEP1LH7kSoaOaaEQav6Qqa/Eob436J0Vw2kY1wZKQ/+ZQcsxNkHDQVtA3fiSrXUyD484ua2HnFimuSpx66jJMaYpsA== 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: Add a new flag, TIF_NEED_RESCHED_LAZY which with TIF_NEED_RESCHED gives the scheduler two levels of rescheduling priority: TIF_NEED_RESCHED means that rescheduling happens at the next opportunity; TIF_NEED_RESCHED_LAZY is used to note that a reschedule is needed but does not impose any other constraints on the scheduler. Originally-by: Thomas Gleixner Signed-off-by: Ankur Arora --- arch/x86/include/asm/thread_info.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index d63b02940747..114d12120051 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h @@ -81,8 +81,9 @@ struct thread_info { #define TIF_NOTIFY_RESUME 1 /* callback before returning to user */ #define TIF_SIGPENDING 2 /* signal pending */ #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ -#define TIF_SINGLESTEP 4 /* reenable singlestep on user return*/ -#define TIF_SSBD 5 /* Speculative store bypass disable */ +#define TIF_NEED_RESCHED_LAZY 4 /* Lazy rescheduling */ +#define TIF_SINGLESTEP 5 /* reenable singlestep on user return*/ +#define TIF_SSBD 6 /* Speculative store bypass disable */ #define TIF_SPEC_IB 9 /* Indirect branch speculation mitigation */ #define TIF_SPEC_L1D_FLUSH 10 /* Flush L1D on mm switches (processes) */ #define TIF_USER_RETURN_NOTIFY 11 /* notify kernel of userspace return */ @@ -104,6 +105,7 @@ struct thread_info { #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME) #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) +#define _TIF_NEED_RESCHED_LAZY (1 << TIF_NEED_RESCHED_LAZY) #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) #define _TIF_SSBD (1 << TIF_SSBD) #define _TIF_SPEC_IB (1 << TIF_SPEC_IB)