Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp710231pxb; Wed, 20 Jan 2021 19:31:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6aI/sA2SJz1ioJlOb9hcMf7k+WbFEJjJLU/W3PgvysMr2m9djTX+4rXrDUQC0AWWXq0FA X-Received: by 2002:a05:6402:13c8:: with SMTP id a8mr9347695edx.191.1611199873594; Wed, 20 Jan 2021 19:31:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611199873; cv=pass; d=google.com; s=arc-20160816; b=CLf5IxdWzVxcnzwEGzohyxJQeMOXebo33/5khcH8ElBvJn6TV23HADaL26M3OHd9pb mNMv0laZsrWVCh0LH1k8P/rxFFiaJ+ukaehGlRJ1X28GM8faLZUR0ROwaMc7RUQdqiBt UloDSbGfGHJb/4ynJXpg6vk6zL5yhi7HNt+C8WuLAeENL9Ug4RYB0rF/r9n8z0ysIrFs NmOLZUqMfpypWDFu3iOqRNfa/DVfO7/yo6Kj1kncp+i8raQjRar+dahtrb55FPmZHh6z rs+Cz8iJldRZhWB0tECeF+E6dxAPtIN71UPeMYjPpGkoNtbIpmFlQ821oYzG9sLBLQ1X 7Urg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=iuk2c6iHeImrruiPP6AfiYMVFvIGf6D4qVeP0mx8g0k=; b=sCGVxBE6VFfzA2u2miltvJG4zA6sIqB4MCPFW9eaUdKIFezVXuo5vudWX4RbUJRPyd 9ObzHc54VN8ktNSevgGjjMtpQ+8xk606+0G6NIlPpeCWKkRKmAuunPFCdzwR20Ut3MFa qGcg0QXiDlcqNguKDEXKWMhaWEXCHnwGTU+7nvFxmaykB4I5OeNnHEFIArJG9FJ32XZa U1Zym2wZiddYWQ0+e89u3A3UklWlBCxJkGEXEUx5flHJDHRsGtLBsK8sNq8td8jTUR+H I800jEa8FF6al+3hvsUExvNmpZf+ZV7uunXzYJ1CJyvaL34jLAl1gAd4H0K00itonvTr HfMQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@stfxca.onmicrosoft.com header.s=selector2-stfxca-onmicrosoft-com header.b=dTsIjx3F; arc=pass (i=1 spf=pass spfdomain=stfx.ca dkim=pass dkdomain=stfx.ca dmarc=pass fromdomain=stfx.ca); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si1584836edy.88.2021.01.20.19.30.50; Wed, 20 Jan 2021 19:31:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@stfxca.onmicrosoft.com header.s=selector2-stfxca-onmicrosoft-com header.b=dTsIjx3F; arc=pass (i=1 spf=pass spfdomain=stfx.ca dkim=pass dkdomain=stfx.ca dmarc=pass fromdomain=stfx.ca); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731839AbhAUClV (ORCPT + 99 others); Wed, 20 Jan 2021 21:41:21 -0500 Received: from mail-eopbgr660087.outbound.protection.outlook.com ([40.107.66.87]:10320 "EHLO CAN01-QB1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732731AbhATXuw (ORCPT ); Wed, 20 Jan 2021 18:50:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m0knbFjO+w2gUkrRCchFC5VOBBryAMWgia9sENVAcQEpHvLGYMI7V7a0BQn8hMBhteZCFow7T8AkZfB65LNCWY0p9p4h1MlxJJ4kJ4nLSf5kbxLtVGkaCrCUcvRL9q4HKGG/N/+okF2BhO2aadfabwc17RfxN0NQ5twk/rZDgTVBYSO79pSxWssJcqWnAMcdw0ba/0XwVIp4VX/nmfHoB1outIPOktEqHdZ8nS0EtwKY3X3tJHiih0EfiLqMU1ICMUO5n3kCkAc+99jsxmzQ8jhGjTDvJdPq71InG5S7VgYpXvhRuWblzig2BynRXeDgUuGQQKnBkF2QexGLTHacTw== 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-SenderADCheck; bh=iuk2c6iHeImrruiPP6AfiYMVFvIGf6D4qVeP0mx8g0k=; b=kiJUoYuPDZTPGgI6ytbN9H3dqAikZW/LSFZgW11RTQiNWv5r3k6VT8KSQEm1Ls9diKnGbXHBygOMFQaj7LwMoz8bYZ8as2jg/o3LVTG5yKT7RDdA1ayFVWD9I/87A8vTtZr8PjXK3Wz9aKk3DwmC8PBe1gmj4t6bFS27QYf1A90qAZyc6gOj8+AMb2NgaX+ALdohnSnWWTiEaDhRI9zEwONwjPUB+6TFetLU+xSHj35WjEa7Q24/LIblqxwxy/fKs6fO2zN393mPsB83orfcCE+l3dQ7374Y9KT993HTC7C3bVZqZJsrpzfU50UvqsGKQn0SI6gGL2xHPZc5/dt2BQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stfx.ca; dmarc=pass action=none header.from=stfx.ca; dkim=pass header.d=stfx.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stfxca.onmicrosoft.com; s=selector2-stfxca-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iuk2c6iHeImrruiPP6AfiYMVFvIGf6D4qVeP0mx8g0k=; b=dTsIjx3FdUFkm9h9mQ5gPoSIDjWzXm33LzHOntFzdl2WPvqV0NsIUlpsDO5FHoQZ5CbPtbNZoHsmzKOKRowLWvAA4X4tuIUsmAt9bPNDYKtEy7cbSeIczvwSHeyjcgdem6y+AYxXaHM5diA1lyNPb5LZP9Cn7/pEi2edBzExf2M= Received: from YTBPR01MB3262.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:17::19) by YTBPR01MB2367.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:1d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Wed, 20 Jan 2021 23:49:38 +0000 Received: from YTBPR01MB3262.CANPRD01.PROD.OUTLOOK.COM ([fe80::807a:7935:d3ff:e93f]) by YTBPR01MB3262.CANPRD01.PROD.OUTLOOK.COM ([fe80::807a:7935:d3ff:e93f%7]) with mapi id 15.20.3763.015; Wed, 20 Jan 2021 23:49:38 +0000 From: "Zhou Ti (x2019cwm)" To: "fweisbec@gmail.com" , "tglx@linutronix.de" , "mingo@kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value Thread-Topic: [PATCH] fix the issue that the tick_nohz_get_sleep_length() function could return a negative value Thread-Index: AQHW74aZwo6PzoiITE+MgNGZUUOG8A== Date: Wed, 20 Jan 2021 23:49:38 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=stfx.ca; x-originating-ip: [24.89.210.11] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 349b1cda-c873-43e8-9db3-08d8bd9e0c9d x-ms-traffictypediagnostic: YTBPR01MB2367: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qBXFlox5uAFPGRMSZEUd0/G8brYvlzHBRTPQhjfbZiOjWX3/jJWvI+uqr+ZQ2Mj2Q5LVpEDW7KwzoqGmMbdkK6YplWUwH64y0z6ctgRzBz7cKWQ0sCjasmYllvgzVqgf55wVsnFrdmApWvYRmpCi7dv8WyCyoaieSXwYqxylWJ9GKi0us9YLJIxVqAA8G+Qy8AwElr7QX7JxyfG/2NdT//+YJ9eiotUVzREGDokbHm4lYOknDIxKY2OaM2JjDZb6nyEEKCGPpgrPF3F8olbpLX15v0Tz9oIqKR8rG9aHpjyrXDDwOyKhJEPwjvgLLPWs6A4cwqiPkSl5ItrldMuRjkcSF0HIXT2cYPL4qAlFA7ISUshaJs6Za9KIc5lypgwx/PYxo5+Q0UTYNA9E+fKCuw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:YTBPR01MB3262.CANPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(346002)(376002)(396003)(136003)(366004)(66446008)(66946007)(86362001)(66556008)(8936002)(8676002)(9686003)(33656002)(76116006)(66476007)(64756008)(55016002)(316002)(786003)(6506007)(26005)(478600001)(7696005)(71200400001)(110136005)(52536014)(186003)(5660300002)(2906002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: YCPgDWdSUvNwybe3mO1DjBI+sDnS7Ots1NAZWvVO6ZSa3KmUt0My4El4LcPjLg1pLKui7KpAuacukvryS5+lNmsbs9yU0KuguPG2EUnIgAu8zaExnP+w9tmmgLOXcEpDOSWgAqug+3D78AkhmiQ9DrXF3ZArlbSi1hSYucpYO/UpvVa0Vq5l/FFU0ewGcVAp0odo8tlASPjQRSzQ0rKvA1MgKMcvXpYqFHzTPvLvnf2oNfHGScr9Rr0CmiAVrvqmD0Q9sF49X2lgawynuS/nvmj5/msOP+mpjBUjI4w44LCFrPjE6RiGwArhKEPYOaOwYUMkZGATJqnC2nLo2HSV4iQHKFaXal2I7/w1Olp9Xsc3j30gibaDNAqvwo3juyfG7O3wYh/r7jCQhmLyfDaltOhE11j1gU61hVWdiz5fI6JkxHKW3XCgXyhgbp8N9F9Q+iJMXUS4EeSMD/wGJRe7Z/DWm+1atl9GjdrDqNye6V7p9anXx4daqyEoYfdQo7p7cb2ONJFs+bm3i5543YvY46/wgJOwVjva/h1aYpqcPP1xI1eKDXnnLqeMuFHmw5HBHBQiH6jGA9h3jpEeeO2taYpT5Kz1Z7iWIwjyWRU++fC2VtHfbOLirsQxsSNA8m5tpYfmb5AuczhA6mwukS5m1pM/QBndSdVvu9IzydWRDG5mGzwbHv669zxcGuXoRE178E6ravX1O6IzlBR++jUyjy2BoDr9mL+giSURSwPdlVo= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: stfx.ca X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3262.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 349b1cda-c873-43e8-9db3-08d8bd9e0c9d X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2021 23:49:38.6184 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8c46abc7-960b-4124-8950-1628b2b192f9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lGaQo2SCFDb2OH8FS32apa2Gzvy5CVepu5Y1DmFumg6QQP0IwrFjo/u/81gDYYbJHrKPZLVjin0aPNN3IHvUqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB2367 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rml4IHRoZSBpc3N1ZSB0aGF0IHRoZSB0aWNrX25vaHpfZ2V0X3NsZWVwX2xlbmd0aCgpIGZ1bmN0 aW9uIGNvdWxkIHJld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