[tip:,irq/core] irqchip/loongson-eiointc: Remove explicit interrupt affinity restore on resume
Message ID | 170781821970.398.12234224860251731939.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-63283-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp441424dyb; Tue, 13 Feb 2024 02:18:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEa0W4Wch6o6vGZG+RTBn4HKN5G13C9L8wAYCslO1a3VeF3YciAnEiROIvxZQsE/F5JuIitHq9AaoB8s66Nb+k5UVoOQ== X-Google-Smtp-Source: AGHT+IG+d1K89xqGPE2KbEmtsT6AsQf48Oej7vXxS1p1TuKFHq1832eVAg3JpiPKXxLR6h2R/mI6 X-Received: by 2002:a50:ee03:0:b0:560:fd6c:e52d with SMTP id g3-20020a50ee03000000b00560fd6ce52dmr6317573eds.11.1707819501143; Tue, 13 Feb 2024 02:18:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707819501; cv=pass; d=google.com; s=arc-20160816; b=iwrPOeMsY6WoSRfV7PYFfBBBixhKTQdRMY9LJ6b36KEnRDUFRAjvm3onj86zhEPP6U rjsfvJdeiOdDZauQ803m3/6m0AINcqOzjeH06fsyfst6W1qw/9SjXV/LTRG0zasZCtnp AH8dWO80wdHVH8GSTSBM0Iy4BezIrgweuH7cFFTxQjwEAPelqTHpFb3azL5PqY20fsyC vO6EmiaDSsxKwU3Ls0q6MPA6hs1DlGgVidRz81NMlzr5iWLJeU1vdp/B7yIRmRMCkCxI bgv/jny1iK+JKvDfEiUEm3Xf3jLdt5VZFEe35jTXaM4SyxUo1+jEW92U+IBEk1jqCw11 iiMQ== 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=H5kxCo3m+HcYpSsVxVZlDOnzOoohEAWGA1/rMhG8Ntc=; b=ZlZFrz1ss+49bwQqZHoCxJlVf1XAeVWcFqhVCEDM2yfY6hbcPdcq5zDjbH8WGvcgRh fxJRoaj5Wtijb0LaB+CSxfBbRfo3xYjMwrO3L40PN/hoTMyiiKj12u8DUqMw0Kc31Vv1 axKkm+rrtHDdmSrL4BP3spqcKm5bgISrFgw4dpelRoDVLpcI1ILZ6evppt+lF3Gf89jC UH+bkf/u6wNp0HKnQa3Ig2GfWtQXoBUfPj7Ml9Siqsvajd1/bRBfbu48T7qtqECdn4Wp NxwCv+tt/eYJZByvRl8oQAbjcXzmn6rdNbcv4e7yArsklD1oAlEQ3Gw+8PWSBSwM8nb4 ugcw==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63283-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCUsF2N4qTfBiUV0EzLevnru2xMcf6zm2Xal2U/sK4eYDBSSa46pvGGv2rPTGOwO0Y3kIawIS9J35fZsNNk5PxRjUWsJQA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x1-20020a05640226c100b005619f721cd2si2493091edd.78.2024.02.13.02.18.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 02:18:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63283-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63283-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 62D721F2A04E for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 09:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FB39383BC; Tue, 13 Feb 2024 09:57:06 +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" <tip-bot2@linutronix.de> 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 <maobibo@loongson.cn>, Thomas Gleixner <tglx@linutronix.de>, 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Message-ID: <170781821970.398.12234224860251731939.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790778541527825447 X-GMAIL-MSGID: 1790778541527825447 |
Series |
[tip:,irq/core] irqchip/loongson-eiointc: Remove explicit interrupt affinity restore on resume
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Feb. 13, 2024, 9:56 a.m. UTC
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 <maobibo@loongson.cn> AuthorDate: Tue, 30 Jan 2024 16:27:22 +08:00 Committer: Thomas Gleixner <tglx@linutronix.de> 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 <maobibo@loongson.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> 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 = {