Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1500785ybc; Tue, 19 Nov 2019 22:45:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzdGagxPnEa9wI+2m9nIFWTQjv2wQeusF7DLfBh8MOonTREr05yJMHCvJI1NAQHAHpcNEfr X-Received: by 2002:a17:906:b289:: with SMTP id q9mr3012136ejz.183.1574232320659; Tue, 19 Nov 2019 22:45:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574232320; cv=pass; d=google.com; s=arc-20160816; b=vYAr7hHjcj29nj2+4xrbija1N9taH4dBzaXGk+W/P4QvcxmI6QRh/d7eBIKjrJmfOx Xp4tB4ZGzqtIYSk5drMmcvgn/mt7PvRRIczYmRR/nSNzfeKYLg0npluNoFaycEdhRnpK tlAS8MxPk9giJ17DUZ/f5F4pS/WzlCOgz4KYeJc5HgwF9F00Ke22YmnIs2I7ovCWQ6ln lcJWbXf6QBCFpM9IXbOnrOsp4e2cxv5jbtA9umwZCXO75kLsy1IDWyhJ31R+Kfo7sp8g eJFvMiVqzv2YbcBHVx0Epn2pAS3ncMngxyfdOvD7/0RB4hc5kCexy4vKLFuRh6V3Rob9 waTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=X5qvjxbY16pVTR1ymaK/jx5egw9CaF/bLnmFCeJiYJM=; b=RyEh/GFYCx1ZAunImprKwiMujRZuwAD+fCJ0EDGO3nm45OCc04qLPGifkChJOtJi56 +UStn+cm6lYoPnXc/SJt8BagU9XpbZ3nMLGG7jk4rNje1HGaErO8n9HffA4dfrn7B5X0 jcC7k2K6atbqskvGdCSZ2GJurS0Tk58ILdhCjDDf95DoY+nWUGVcsDANijBwkWFmEim4 PW4A64F3I8xXxR5APka7YQhbddmuUOvJcE6upl+XQRBULRDdHSuJhoaS4aUpguhTk+Tg zn0iYodg6NzarBiYvGhS5M71asd5h8Wl5OnDNiu8SIuKgIAvyliiLQRqkB6bXRFIeG4I jVTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=oRf7pEXi; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oy7si15202125ejb.417.2019.11.19.22.44.44; Tue, 19 Nov 2019 22:45:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=oRf7pEXi; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbfKTGiw (ORCPT + 99 others); Wed, 20 Nov 2019 01:38:52 -0500 Received: from mail-eopbgr760082.outbound.protection.outlook.com ([40.107.76.82]:23205 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726685AbfKTGiv (ORCPT ); Wed, 20 Nov 2019 01:38:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BF601UzsXr1zZkeImYU6yLPYe9V71slsdugft9MounrIbz30N3RwGxdG+DzpM6sIneMqMHo0Ab3g/A0K8necQXs0oTP0GszDf/G1wCMVxdmOgxr+wAFggSWT8NkxNnUZwTs3f6lddAxTZsvhkKQ5iso7Mr1VOQp6sQj8+4IeE8S2UOY539XDA8xA3CnIRUIPzyiKJvxV6zfIGfN2Kb2a8+AyEkb46xplHA08FdkqJEM8DCyl3SW4lJwa44PjLjCG8nE0oIJ1h5g4tZ5UIfsbseKAvrmU4mEvIjYGClIldsqz+71pk/fi64fcfb09kwGWmicldD7W4zkCyWU5Z7dP+Q== 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=X5qvjxbY16pVTR1ymaK/jx5egw9CaF/bLnmFCeJiYJM=; b=lSz3lMCdVp8yqzznheICJXi41jte7FBXSsz0S3Aj+Mc9adsUPDKdG24hKL7JXGg1FgdPq0bbhnU9kjyFOGJ+8Ylc8UFqhwnUASiM0CwzYk2oGP9VSAD4+BjUGn6JBQZsZ7KZoD6qXxAHlZYsWVmAV1wj50x7N8Djyqho+hKycyDF9z6VD5vx6+WqvhsEZg4KthEFLWWTJfETB5zIx0hvaW8pbtFRBtkQUe1A6oQw2HGXreQxl111gAkRZM8g8p0UV0PtW5MBDipMCCwE9fUYwDqJgK4MsFyfUXZo+D6sswgnIB2jLerCAzuOjFyPIskeM7G19/Nf1RyNWz/i5ZuCiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X5qvjxbY16pVTR1ymaK/jx5egw9CaF/bLnmFCeJiYJM=; b=oRf7pEXiFw8gF3Rt5R4js5cTXTRsDXMno0/+yGLA793XM/LyNYqO+o6sM/0gHqslGouXzCTvMCXpyelmih4aeuRfGvNIUM9zEgHL+nr5owbxSxVfmBTmOYmgfUrgwonkoHAhBMRDuxwubi0TyE7QuzcwuWmow/SoBifPUTtNivE= Received: from BYAPR03MB4773.namprd03.prod.outlook.com (20.179.93.213) by BYAPR03MB4648.namprd03.prod.outlook.com (20.179.90.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.28; Wed, 20 Nov 2019 06:38:47 +0000 Received: from BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::a8f6:f5d6:f438:ec61]) by BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::a8f6:f5d6:f438:ec61%3]) with mapi id 15.20.2451.029; Wed, 20 Nov 2019 06:38:47 +0000 From: Jisheng Zhang To: Thomas Gleixner , "Peter Zijlstra (Intel)" CC: "linux-kernel@vger.kernel.org" Subject: [PATCH] watchdog: Remove soft_lockup_hrtimer_cnt and related code Thread-Topic: [PATCH] watchdog: Remove soft_lockup_hrtimer_cnt and related code Thread-Index: AQHVn20pt1bfgUsCsEeZCjfgrKg0kw== Date: Wed, 20 Nov 2019 06:38:47 +0000 Message-ID: <20191120142522.0e82c985@xhacker.debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [124.74.246.114] x-clientproxiedby: TY1PR01CA0198.jpnprd01.prod.outlook.com (2603:1096:403::28) To BYAPR03MB4773.namprd03.prod.outlook.com (2603:10b6:a03:139::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0d990f83-467e-435e-febb-08d76d844bed x-ms-traffictypediagnostic: BYAPR03MB4648: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:72; x-forefront-prvs: 02272225C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(376002)(39850400004)(396003)(366004)(346002)(199004)(189003)(6506007)(99286004)(256004)(305945005)(6512007)(9686003)(52116002)(26005)(4326008)(478600001)(110136005)(66476007)(14454004)(7736002)(386003)(66946007)(66446008)(64756008)(66556008)(8676002)(81166006)(66066001)(86362001)(81156014)(1076003)(71200400001)(6486002)(8936002)(186003)(50226002)(102836004)(486006)(316002)(5660300002)(6116002)(25786009)(2906002)(6436002)(3846002)(476003)(71190400001)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB4648;H:BYAPR03MB4773.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:1; received-spf: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zsDC7XT9B3cNzkRg4YYP00kcWSzZDFtrHKCIJdgG0hSOk0ekf1oZhPo/z4XY8u842eNT2VRsK6ro+r7OlyKZRGY4P9tdI+rEOlSDHpMJtY4TsZ2bvhm2YkDVtGuFUg/aX+Y5dqJNO8z+3+R4r9IM3nSpxsFKC/RLHRu0Fh+71H5ap9b8iaxpCEOvLZ3jB2k82f+epwI2OcLmdulVbG3xu1qKdA4DuECkwXrCfbvTkVoGC5qcQtu9cquVjNAlekZvMcCIAdjQ31RT2e6XhG1Z7Emv8gYS/ESbMh6HmSLVSVZ1gSA/BJIAHXJDKtaClgMEj1dWp57xCuonrwrvHNCY1OZMgaPe4vPlrHnp1TNq8PeECMRXDiCeLCrJkXRJHoILzOkSgSJzsZ3pciudYTfBug3h6WABRjU7ZApFCr2Yv8sU6i64OCeu/4YN14LJMy4V x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d990f83-467e-435e-febb-08d76d844bed X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2019 06:38:47.5912 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: J+HS2rclZN28y8vhyOTSnO4mzx1t4N6CE3LfsQeO2R+zju22thOx423G4iKDz3j1N7UrfNc+bSXRmXCMN/hT4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB4648 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 9cf57731b63e ("watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work"), the percpu soft_lockup_hrtimer_cnt is not used any more, so remove it and related code. Signed-off-by: Jisheng Zhang --- kernel/watchdog.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/watchdog.c b/kernel/watchdog.c index f41334ef0971..0621301ae8cf 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -173,7 +173,6 @@ static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer)= ; static DEFINE_PER_CPU(bool, softlockup_touch_sync); static DEFINE_PER_CPU(bool, soft_watchdog_warn); static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts); -static DEFINE_PER_CPU(unsigned long, soft_lockup_hrtimer_cnt); static DEFINE_PER_CPU(struct task_struct *, softlockup_task_ptr_saved); static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved); static unsigned long soft_lockup_nmi_warn; @@ -350,8 +349,6 @@ static DEFINE_PER_CPU(struct cpu_stop_work, softlockup_= stop_work); */ static int softlockup_fn(void *data) { - __this_cpu_write(soft_lockup_hrtimer_cnt, - __this_cpu_read(hrtimer_interrupts)); __touch_watchdog(); complete(this_cpu_ptr(&softlockup_completion)); =20 --=20 2.24.0