Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9044877pxu; Mon, 28 Dec 2020 05:17:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUWYgyxG//+0T+zJA46AAdugVoLf+mbUtmhEpq3q3BlSGZRh5+9X+dL6XJY5MXu5xthR39 X-Received: by 2002:a50:d5c1:: with SMTP id g1mr43664684edj.299.1609161433195; Mon, 28 Dec 2020 05:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161433; cv=none; d=google.com; s=arc-20160816; b=HMx06keVSJyxpz/+dBzPFI84bWTtmJuZyaHRrKI9RtEln5k85Jqj08RwR10/R3a3lp A4KQYkyW8V6XBKp8KY1AotK5ZcatAMv0aI1CEtOmbYjrwBUuonZ7W2Cb0CLWDLHTTFsh Rp35Jm7uh3zbQxbwGED1kWdvuMT7HcJgnCayv/Od/oUPoj1/epdZXVf7x7hXiv9g6cWR AY/EuWdGlLj7hrAhWIAU2m90Ktxptey9NCFqP0eJ/NqNyj3w7sIU3rjPEXlykpbYSOQ8 G4zm4qf47dVe0MdgNwvwc0rpts80wpSKRDvtyADrkjFGOYUiaBt37OgfVP9OJy3UTTHv Crxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tS+vAYXLAOc2+vy07Q9RRxXEXULcdO1XuZC/gqGwfz0=; b=d5lvqiSMQXBCGIElVZnhMAJele9rSJNF0K0FaZmmVPesXSW1p3HD3cGwyKkiNCPpta I5MyKccwW4p+n9WkiC6dWpAgnlmy6AGHfp2kOOREgFfScszgz26gSD3H1BLHIm1zaoE5 9sns4zUXtGfu0QIAD1BJqkbr125zmGrJe4X+jdoxKOl/2NeBaaFNNcmr3ff35+G0rThL fxff0TJWae74Q2F6XUihDqG06oaJrnxpwTG0XfF0GNUMLwM0320UsCCyb671mvvZ0wTn HkBcceHkn8iwO3/Xi9dY88d0nbc5ikOaqNjoxt0bpcbSlomtjPMNfhUpm3fFWQUAl87J 5ugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=haEzEkfO; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si3462027ejx.368.2020.12.28.05.16.50; Mon, 28 Dec 2020 05:17: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=@linuxfoundation.org header.s=korg header.b=haEzEkfO; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732468AbgL1NOR (ORCPT + 99 others); Mon, 28 Dec 2020 08:14:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:41832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732440AbgL1NOO (ORCPT ); Mon, 28 Dec 2020 08:14:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C51AC22BEF; Mon, 28 Dec 2020 13:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161238; bh=aHGF5GRRwAoFtRgVjPWdmlpM/DCLHAZJp3duD7olTO4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=haEzEkfOHaQfkMZkknNTpynlp00bPZoQw7npoDEMYd+nUMj6DaaJEeIXYc3I2X2ry XfNQ9p8MZyPdLoto8nfjVq+I0LhzMPUYhtkJHhR9pS+HVzWt/ROWsl9pce4K/Jsehh NZ2bBh4CuBS2amQW7K3XcA6r17Wj4yFo0COlVagA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Lynch , Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 149/242] powerpc/pseries/hibernation: remove redundant cacheinfo update Date: Mon, 28 Dec 2020 13:49:14 +0100 Message-Id: <20201228124912.042221843@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Lynch [ Upstream commit b866459489fe8ef0e92cde3cbd6bbb1af6c4e99b ] Partitions with cache nodes in the device tree can encounter the following warning on resume: CPU 0 already accounted in PowerPC,POWER9@0(Data) WARNING: CPU: 0 PID: 3177 at arch/powerpc/kernel/cacheinfo.c:197 cacheinfo_cpu_online+0x640/0x820 These calls to cacheinfo_cpu_offline/online have been redundant since commit e610a466d16a ("powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration"). Fixes: e610a466d16a ("powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration") Signed-off-by: Nathan Lynch Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20201207215200.1785968-25-nathanl@linux.ibm.com Signed-off-by: Sasha Levin --- arch/powerpc/platforms/pseries/suspend.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/suspend.c b/arch/powerpc/platforms/pseries/suspend.c index 33077ad106cf0..b7cdad95584da 100644 --- a/arch/powerpc/platforms/pseries/suspend.c +++ b/arch/powerpc/platforms/pseries/suspend.c @@ -26,7 +26,6 @@ #include #include #include -#include "../../kernel/cacheinfo.h" static u64 stream_id; static struct device suspend_dev; @@ -91,9 +90,7 @@ static void pseries_suspend_enable_irqs(void) * Update configuration which can be modified based on device tree * changes during resume. */ - cacheinfo_cpu_offline(smp_processor_id()); post_mobility_fixup(); - cacheinfo_cpu_online(smp_processor_id()); } /** -- 2.27.0