Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp245492pxu; Tue, 1 Dec 2020 10:09:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh3Pza4C/t679Z3MGppGz5vFMv7SYY/2cflKALTgX7A7KkronrvJcq8PpPofqCds33L7CB X-Received: by 2002:a17:906:6dd6:: with SMTP id j22mr4108946ejt.255.1606846177431; Tue, 01 Dec 2020 10:09:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606846177; cv=none; d=google.com; s=arc-20160816; b=iCPCNjeFEkE076piZIRkPigUPNxchVAxoQq2deZexir06TfvFEVhsYmICWfSNa/CD8 +IB+XUjaNYCIVNoEIdNpdUMN4rk6G/M7a3dqsPac4WKZrQaTJ6/fD4BetpsQV1SEFQpJ +yKF339JDV7CZn9Lg0yaoAQvskemuUgaSqArwz0U/wdIc38NvZxKMeLBJ+aPo+Daq7W6 7nyluRkMo+y1KflIsqovDVVSrCmMNg/pPNg1bs4insSg93JpDtp0r7RBTphDi3OSJ3r9 pO0lcG4gmCuo0K7FEcje9ruSOnz82s1VfNqi5fQOc8EhDousAf79gNeq/fu43R2XCv7t ol3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=huFZ19MEgCoEjChf6oqqE5iRSukWTFaMP4x+vz6ezEU=; b=vY5h2vDReWV8rmFTYsaskB+Hv1iD4KcjLQ4/PQlr2ubGWmlF3EDcUdbKjTr50SkX+K E0+n2plpVtWY8qmsMTWcbXqveanFEbOiL/aZnfqsvXdHZOv1Ji7TWVxFaIS9WhTVs/Su vZfZ4DJmDpxsgBADbWhrhYycTWcpVmW9BiLxTZ1TaXzCuBie22r8gIXzFR00K2IVZrNT Kh32WiulI1pFhPpH9TlMj+rv5pnqXGSdtvjGlUmGs0iKu0AHSz4sF3OXe89KSvn9L/1D Gj56/3UNlYebugOg+cAtDzC3MBGXSV21FOImcV93ZdmUISt99Sx16GjAr1NTRdt84b5V iN0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=H1b8Vq0H; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si414965ejj.587.2020.12.01.10.09.05; Tue, 01 Dec 2020 10:09:37 -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=@linutronix.de header.s=2020 header.b=H1b8Vq0H; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388619AbgLASGh (ORCPT + 99 others); Tue, 1 Dec 2020 13:06:37 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:57002 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731202AbgLASGh (ORCPT ); Tue, 1 Dec 2020 13:06:37 -0500 Date: Tue, 01 Dec 2020 18:05:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606845954; h=from:from:sender:sender:reply-to: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; bh=huFZ19MEgCoEjChf6oqqE5iRSukWTFaMP4x+vz6ezEU=; b=H1b8Vq0H/pNSEoL8Bc9RpWSUM7YicK5iDMId1Ue0E3gHwBD7CuuFr95ns3z4DtpgG6iPZC 4J0yiNqeUSfD3YlIEFdS9NH6PNuvhbsqgGf5jd+MuIa9GUnAv/fB+787gOEypKs+KofI5e t7P91eRSM7xW5XmN76s4F8vGv/QyU9gc1HeQWxVH/yZa7XcpVpXNSEOd/QtcI9NzvgUHRx B7UVd/vSDPhNQE+aG2hfMWnIzRHXkyBvKwIrNdC6kzgDv4pmHqsRuUGjVFWbXy8r92/ZLb 3E3cDxW/t7vEvrxMevQxkqZQKPuYrCjFPVvYlPTB5MD3OSmnbYH/+Llm6dZMzA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606845954; h=from:from:sender:sender:reply-to: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; bh=huFZ19MEgCoEjChf6oqqE5iRSukWTFaMP4x+vz6ezEU=; b=eh5kjdyh0i6Hfc/ud9vKSgU1tm7YYKbHU7r7jY3GhwhnKG8LB5JKAQdrPeiXjsfitxBf7M L1It0BuHvp9BnYAQ== From: "tip-bot2 for Gabriele Paoloni" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] x86/mce: Remove redundant call to irq_work_queue() Cc: Gabriele Paoloni , Borislav Petkov , Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201127161819.3106432-5-gabriele.paoloni@intel.com> References: <20201127161819.3106432-5-gabriele.paoloni@intel.com> MIME-Version: 1.0 Message-ID: <160684595404.3364.4509615068323236541.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the ras/core branch of tip: Commit-ID: d5b38e3d0fdb1a16994b449bc338fb8b26816b07 Gitweb: https://git.kernel.org/tip/d5b38e3d0fdb1a16994b449bc338fb8b26816b07 Author: Gabriele Paoloni AuthorDate: Fri, 27 Nov 2020 16:18:18 Committer: Borislav Petkov CommitterDate: Tue, 01 Dec 2020 18:54:32 +01:00 x86/mce: Remove redundant call to irq_work_queue() Currently, __mc_scan_banks() in do_machine_check() does the following callchain: __mc_scan_banks()->mce_log()->irq_work_queue(&mce_irq_work). Hence, the call to irq_work_queue() below after __mc_scan_banks() seems redundant. Just remove it. Signed-off-by: Gabriele Paoloni Signed-off-by: Borislav Petkov Reviewed-by: Tony Luck Link: https://lkml.kernel.org/r/20201127161819.3106432-5-gabriele.paoloni@intel.com --- arch/x86/kernel/cpu/mce/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 99da2e0..a9991a9 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -1406,9 +1406,6 @@ noinstr void do_machine_check(struct pt_regs *regs) } } - if (worst > 0) - irq_work_queue(&mce_irq_work); - if (worst != MCE_AR_SEVERITY && !kill_it) goto out;