From patchwork Thu Aug 1 08:16:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 170347 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5086983ile; Thu, 1 Aug 2019 01:21:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2T/P5iiYbnn0C9HCUpj8weoQJ5YUTCzyM9XftgX/RM71rnuRBpnMEe4oTuvSQM/V1XAes X-Received: by 2002:a62:2a4d:: with SMTP id q74mr51958938pfq.86.1564647682638; Thu, 01 Aug 2019 01:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564647682; cv=none; d=google.com; s=arc-20160816; b=cKv7Z+u7yc4PrW6RBZxPs491wntxlkvFnt0z2amB1rfFrZ5rlbstDFhym6Y27Tud1L O6X0krBn6U8qch6T+hxw1Fy2WcZxA670hamP7El+mHnqcOHVFqtJG6o/u37VCBDnHj2x te6C1Zd0j0FGHeK97vsWLJRwSzk+V87hse0qOyxCTsaiOTq7eh7xgvDdhICWsSu3O1xM MaGKUl2GZrNJ4rzQ8vbsFdykhG88p5ZIiCDS4XObKSGgzhLOUhOlNpTz4KyWNnXeUcKZ ydNbscTWTK92pg3OH+WDqwJ2g9zHbUUCwBAgvgom8S8te7PmptHgvLGFABRkmsNYF7Um t5mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gEzBHKM5Yrnew5IgDE9VhKRrkovpTReWWDnzndMpTpo=; b=hUuNje/v9hEcjb/I1XKzwhVvn44gNjGwAxQuUxOf39EMBmRkwcFhOGa7d0JvmWAbU0 Sn+nT3GTriIGSvkKT/WZo4ioCXDTdAB6/4FOodv2oF+rMfxmA/MSn7+vIBgkvOs04txN gne9ZDPdG96nG8f1HYn6sDicFcJZ2OK06BLotqKGKU823ou/K9R1G5mp84dBwQpWMVFl L8+Xi7boNl25NRL0zT9kCRh+TaHQXBbzgKblrGHhiXlpnnA2Yj/iK4/YpkmoYXjQ2y0i UTigaCqoTqhH4YRbR8ve8Hw+r52DKW9lPx5jf2XFXt3COTEFU2XT1q92Wl5DNrNedk2Q EsRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UN9wbT1c; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13si4013236pgj.476.2019.08.01.01.21.22; Thu, 01 Aug 2019 01:21:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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=@linaro.org header.s=google header.b=UN9wbT1c; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729937AbfHAIVW (ORCPT + 14 others); Thu, 1 Aug 2019 04:21:22 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36897 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729898AbfHAIVV (ORCPT ); Thu, 1 Aug 2019 04:21:21 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so31884245plr.4 for ; Thu, 01 Aug 2019 01:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gEzBHKM5Yrnew5IgDE9VhKRrkovpTReWWDnzndMpTpo=; b=UN9wbT1c5Wx19ZD2dzkTJ0vzKrvZSwdLl/MoPaL7Bf5lgYTUbPsoGyZaiQxXofgkyN I9Ta0f5FCBMV/ZPClK1Ut66nIJg9T6CE9kwIi3O+VIixnsW+ZVIAXVzfRpelZyl2PfOV UQ2qf49OaqxnZw5UwF+H40gSMu5ka3TK3gzkPxSM+M04VEdd6jvD/ZUnXWE9zqktt1DC bfLwxwHqhXAhLi1gls5Aq9+gSGFeuIsSUu5sX/BfT3URFPW1pv/HgNwFqeXUojYz2mMe Tmo/OGFIq2GbvVBu0phLhNVYn/62935QkaI/dM2KpSkyMSvZTxnywcgXj/DwrSY7RWKD WgvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gEzBHKM5Yrnew5IgDE9VhKRrkovpTReWWDnzndMpTpo=; b=djJ9mpdg8CC7ZD8g6BkMlFtvjBDSJqpafGeIuYuZJluIuoIt6L6S6myo0XF9i4g3cZ hb+ciZamXOtRXElM07orJoZLmZ5y3KZlsqNKjFCPjazWbXZOFcZ8yJVnTPQqka3fxfc1 KEYS2xw7keFUigQvN4UxjEcIefo79KWvMYY0NajZvsJaWB5CrZX774mloIdDSxEc7R8H h2m6ql6EdyxHqYHOEZWDghtNr91ixEF7+H3G4mBr79wZ/pBvcbjqJw/4jnzMNGQG0Mvy RWMWzNHWx2Fmwmc5XIYTBnjVsLBLGKRkPrZYiFNdsfohV2xmkB3q/TTymut9V7R7f8Q1 rcsg== X-Gm-Message-State: APjAAAW9z3dQDTzSx9FSOvfrNhAUO0WkFxhxZ7NVFS20Heb5RjGwu6FY 1/7xS7HEVclx+2Hvwbo5JHosKpKDAMo= X-Received: by 2002:a17:902:7c96:: with SMTP id y22mr127080149pll.39.1564647681003; Thu, 01 Aug 2019 01:21:21 -0700 (PDT) Received: from localhost ([122.172.28.117]) by smtp.gmail.com with ESMTPSA id j6sm10632447pjd.19.2019.08.01.01.21.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 01:21:20 -0700 (PDT) From: Viresh Kumar To: stable@vger.kernel.org Cc: Viresh Kumar , Julien Thierry , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Marc Zyngier , Mark Rutland , Will Deacon , Russell King , Vincent Guittot , mark.brown@arm.com, guohanjun@huawei.com Subject: [PATCH ARM32 v4.4 V2 41/47] ARM: clean up per-processor check_bugs method call Date: Thu, 1 Aug 2019 13:46:25 +0530 Message-Id: <33110a95761cf304c04b2837d8539553adde85b8.1564646727.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b In-Reply-To: References: MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Russell King Commit 945aceb1db8885d3a35790cf2e810f681db52756 upstream. Call the per-processor type check_bugs() method in the same way as we do other per-processor functions - move the "processor." detail into proc-fns.h. Reviewed-by: Julien Thierry Signed-off-by: Russell King Signed-off-by: Viresh Kumar --- arch/arm/include/asm/proc-fns.h | 1 + arch/arm/kernel/bugs.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.21.0.rc0.269.g1a574e7a288b diff --git a/arch/arm/include/asm/proc-fns.h b/arch/arm/include/asm/proc-fns.h index f379f5f849a9..19939e88efca 100644 --- a/arch/arm/include/asm/proc-fns.h +++ b/arch/arm/include/asm/proc-fns.h @@ -99,6 +99,7 @@ extern void cpu_do_suspend(void *); extern void cpu_do_resume(void *); #else #define cpu_proc_init processor._proc_init +#define cpu_check_bugs processor.check_bugs #define cpu_proc_fin processor._proc_fin #define cpu_reset processor.reset #define cpu_do_idle processor._do_idle diff --git a/arch/arm/kernel/bugs.c b/arch/arm/kernel/bugs.c index 7be511310191..d41d3598e5e5 100644 --- a/arch/arm/kernel/bugs.c +++ b/arch/arm/kernel/bugs.c @@ -6,8 +6,8 @@ void check_other_bugs(void) { #ifdef MULTI_CPU - if (processor.check_bugs) - processor.check_bugs(); + if (cpu_check_bugs) + cpu_check_bugs(); #endif }