Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2950098rdb; Tue, 13 Feb 2024 02:09:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcixJuxdJ8aPtXX27slJ9UsEENDDLCEG08Qd9R97XLWiwJTVV442nBLFJrvglgr3fhilSXqAHrUU5m/05KB4ZpESAZoIQbynUX25c/mw== X-Google-Smtp-Source: AGHT+IGl9mX4u8kyPDJAaQAkcHWEcIilLduAT7b9ex3np9Id+4qrUo6B9e2xr5FebU2JNX8MbFN9 X-Received: by 2002:a05:6808:16a6:b0:3bf:e035:daee with SMTP id bb38-20020a05680816a600b003bfe035daeemr10858421oib.32.1707818944375; Tue, 13 Feb 2024 02:09:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707818944; cv=pass; d=google.com; s=arc-20160816; b=L/4kq5fmiJo3Fsc9dRaU38gPzNhUBbvJQu5Co2Qtiqc177Oq3Mj//RiIpI9Gp1POSh UO7VcAkvB4llnsDCfPcP8yJTpc/XJNDZuHJXPE/i2X8vrgAQD5aXDLcVdroVViudqU9n /AwAaaxR0+KXWOA3hJ12JZcQ7ZOptjgIY3eRfkWEk9AN96ivjuJ2Id/wGQJnA6qaH/4q m6qZjkB2P1Y2wL4FWOwTxhkbfomX21d6KCgz/pjmfZsajNuJNBeQZxY4LDvbSj6XE/bZ xwLTlYBEXnVB24oEiEYtn1+OJmiIDdd/tWECAjBP+pe29fPoNFfqJgkmbabg90gZYELD /6YA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=Ga8gjUuHA/M7trC17sJZBov1w6L2E4sKkS4+7bQ0WlI=; fh=Ghqfyp3Fs+vA5PlREfk+WvH7XWi6RHNkmm2yZrf3wVA=; b=p6GwzOXTFHgWmyq+HmeFf9Pvb23jdSR7tgGxKMizIjv337O1nPKPFNnXa85NZMcPxK cuvmPKLeaoi+Ca1AyvGOrQ6cc8mGkRpiYWiZL9XqHgoPkZlVTlSCGCsynx/s7ISvG1YQ rZ3YpBsYl28Q7WgYQvT4zUcEXA/lqIfP4Wm/H5dUr7DnPBPLTqryIKOFKfVJE8WJcL0q RcwtCDcsUACP6KuPls3mx8U8ESWhXDG1QfxfwndMgINSa/VxccTloQt3s84k9Pd4luyM 9Z+Jf0T2rkQ48EL7HQ4ETUvRtY1d7XOg/uVG/oVu8wqWtmsbBVrbtu0lc5bH6FB4r46/ jJRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=s0W9Nxn3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCVCkNcERcq8hoq3juopBdUa23Pyj+mJmn6maxQTPYSyqjHzvZ49YFyA/V14PvKKXe8iIKQV6HbAjm36FJzumA1XD3fbRHW0TTMVyrccmA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j10-20020a056a00234a00b006e09499cc7csi6611171pfj.183.2024.02.13.02.09.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 02:09:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=s0W9Nxn3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 760E228303F for ; Tue, 13 Feb 2024 09:58:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7226D36AE9; Tue, 13 Feb 2024 09:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="s0W9Nxn3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zIBTEQVF" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF28E2C697; Tue, 13 Feb 2024 09:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818223; cv=none; b=uEjzY07yvOpRxLEM3onMlAudz491E3kCyvRMTD/DxTijjP3qOBguRgQtxRx82lZIQLT/F3cJpbBtMDqi+djJp0NfHBRIHQH5eI8m6AaRBnCMyauLpCuok+/kCZ+zByPGXxyJIJWwfRQpAkdOLRQGPg+A0wO+gShLy4XTaK+Pp9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707818223; c=relaxed/simple; bh=iGjPOz9dqoNts+T+448I5hUuxjj0LAiQI+tQQaJfbqc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=uYYfG9PxdMOZsXiJEKba8eLa9UeCJ92eFeDMK6bcGbi5PGtbixtcANb3tmQavwmp+xbypygQj2k0USvb3YPIvZyIIqoLEcftBgXysmTxntndPe+mp1+egQkC/gGkEjK6KyDfPbIDopJu4n95qP2d3IRY5Mvm+qK89vzyZt2Yt1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=s0W9Nxn3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zIBTEQVF; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 13 Feb 2024 09:56:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707818220; 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=Ga8gjUuHA/M7trC17sJZBov1w6L2E4sKkS4+7bQ0WlI=; b=s0W9Nxn3w4Byhsclt6UgDO6x91WCX516I/C6MB212tw6OPVujyyHHEAFji0Lkpy15NVP+y LgeuKFA5tYt9CLJ8oOLkRSuYakNUH4ux1p6aG7VNnUKwpFehp1gtTmC6YDhkY322dEeDJ3 rNlEGQ46Uf7vWgu2x/KxrzibQAJp/xLlbFANADaA0PAFOPUa3qKAL8hJ/dwg7e6mEJ7p/a OX4UpT+3r9wnoSPaj0/fMoR9wJTfzKXADo5LTHd1/MtcpK5rUUhZzOFUmU5+oJz+Fma1la okH7kgXJC5vB//RzTt5w0vs9VyulH/JcjDZ53gDxo64yHTaXCYKTfZfEO2YVGg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707818220; 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=Ga8gjUuHA/M7trC17sJZBov1w6L2E4sKkS4+7bQ0WlI=; b=zIBTEQVFhNdyvuRldyHD98Ed7SqET24yEqT8Y7AuyTFMgzQ5EBEz2WcadP4dmcLxkFAkGp mzIp85HDLfZ+pvAw== From: "tip-bot2 for Bibo Mao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/loongson-eiointc: Remove explicit interrupt affinity restore on resume Cc: Bibo Mao , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20240130082722.2912576-4-maobibo@loongson.cn> References: <20240130082722.2912576-4-maobibo@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170781821970.398.12234224860251731939.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the irq/core branch of tip: Commit-ID: 83c0708719f77018cd3b98b0011c9526a3e0e2ca Gitweb: https://git.kernel.org/tip/83c0708719f77018cd3b98b0011c9526a3e0e2ca Author: Bibo Mao AuthorDate: Tue, 30 Jan 2024 16:27:22 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 13 Feb 2024 10:53:14 +01:00 irqchip/loongson-eiointc: Remove explicit interrupt affinity restore on resume During suspend all CPUs except CPU0 are hot-unpluged and all active interrupts are migrated to CPU0. On resume eiointc_router_init() affines all interrupts to CPU0, so the subsequent explicit interrupt affinity restore is redundant. Remove it. [ tglx: Rewrote changelog ] Signed-off-by: Bibo Mao Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240130082722.2912576-4-maobibo@loongson.cn --- drivers/irqchip/irq-loongson-eiointc.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/irqchip/irq-loongson-eiointc.c b/drivers/irqchip/irq-loongson-eiointc.c index fad22e2..405f622 100644 --- a/drivers/irqchip/irq-loongson-eiointc.c +++ b/drivers/irqchip/irq-loongson-eiointc.c @@ -310,23 +310,7 @@ static int eiointc_suspend(void) static void eiointc_resume(void) { - int i, j; - struct irq_desc *desc; - struct irq_data *irq_data; - eiointc_router_init(0); - - for (i = 0; i < nr_pics; i++) { - for (j = 0; j < eiointc_priv[0]->vec_count; j++) { - desc = irq_resolve_mapping(eiointc_priv[i]->eiointc_domain, j); - if (desc && desc->handle_irq && desc->handle_irq != handle_bad_irq) { - raw_spin_lock(&desc->lock); - irq_data = irq_domain_get_irq_data(eiointc_priv[i]->eiointc_domain, irq_desc_get_irq(desc)); - eiointc_set_irq_affinity(irq_data, irq_data->common->affinity, 0); - raw_spin_unlock(&desc->lock); - } - } - } } static struct syscore_ops eiointc_syscore_ops = {