From patchwork Thu Feb 14 02:10:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158286 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp793870jaa; Wed, 13 Feb 2019 18:10:42 -0800 (PST) X-Received: by 2002:ac8:1415:: with SMTP id k21mr1033014qtj.321.1550110242913; Wed, 13 Feb 2019 18:10:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550110242; cv=none; d=google.com; s=arc-20160816; b=qOKWu671qfyUU0P5wxmtQVUTdDLT5/tNfYx5gTU2j/+t6zsc9F825TEdh2/EpOlCNp /nlBDimuq6giQHlje6Wxorq0x/bOQcAr+c4fZ+IJRi52IMgb3230rgYRm32wL7ASy73W f5+EEZ0gx1MJ79xRUYP3yExRNA0+9BL58EC+OJkNIApIYdEat4po0rF/cZmEgBWD4XJH k/PbbPdVx4uQ0ERxQqU0o4sx+6xdao1vSUxynwNS/9GaUgXpSfYQtBggHfa4i/gjjbhu 60PTeJrlSiukdrxMSoZVpLk9dDfp1ibLYunXebqusKDfsGtu6nGWg1tiutBScqgq16jx NduA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yWztxODyJk70cOjZaLMqULYccaSLR3ZRrSr0GSnJD8Q=; b=CCW1/8GEO/oH/6Nb5HMFV1cYiPmQJfAGIh0eC+ZBrrHZOyt9JD6tYQrNCMLHkE7MLD foX4wmlntl6liwmjE0jir2uJhZyQ8xx6DRMJlu+VQvXArmE1NvoIOqfYmCL1YKd9l3jh CZuBxfeLPVsfg4d2yIc1h8m8nDgo5DXOkM2v54sPTZtH4ynlK+nm3qSBOw9AIkZd+41Y W8iGjOH8GAAEiQY6MN3PzwoaPYYIu5Zlea9UP21b9c3z5jSF1OcHp/TYlFvHYTUnwefZ DiAqKzgmSWtjNpT8tXvV5MNpBHHVaXWHSbnvs2iylooUT2xcf3HVNAmgt5nzdjrkDPgQ zCFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLOAOGsE; spf=pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dave.long@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e72sor630841qka.107.2019.02.13.18.10.42 for (Google Transport Security); Wed, 13 Feb 2019 18:10:42 -0800 (PST) Received-SPF: pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLOAOGsE; spf=pass (google.com: domain of dave.long@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=dave.long@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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; bh=yWztxODyJk70cOjZaLMqULYccaSLR3ZRrSr0GSnJD8Q=; b=RLOAOGsE5nSbSM6/Fdwv4fbbCUUDxoH87XcZiZPt8XPUpEg2LeQDlKEdX9eejNMth4 D5sjkt3JIQB0/O4sBhzjI4Xv7TxMEI42fBR97qAQ9cEEOuR65FFVZMWXkwlG4nqVNzAA EfPJTUnOXNxNhhGH/5tgmpP6UVQJQzNHJNQG11QqTJiwiawxa4GLUSjj/KP/VFlVej/W VH/WPb8HzrrPBx/qXezHkdtF475W0RFdZVJpXxwJlA2vwLfNvMv2HhvzF+lq3iAEzPht kZ6B1lO/XSu80dqNSmIygnLp8yzaVcaN/IW8WA1AkCzfWWk8IfZjAPiFnb07WJNIi7Cs hoKw== 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; bh=yWztxODyJk70cOjZaLMqULYccaSLR3ZRrSr0GSnJD8Q=; b=uoIsoyZ1sGlz6Ea+j5xJsuZe/ASJSqspkQ9DbVM7/WpRNxdZ0vhkiGl3x+DSRo8joP 1oa9udnwJeAUD4ThbxzT7NKE6Az+PvxccgHnHpJ9CMppM3l7/bouPnT1EqHW861KnllP Da3FTFZNqol4olhlKpPsoBy6MmWetEo8VF1iswXExShw2M/U1X4YJqQsV8BbvG9udHxH PyYAOxS0K13jk6M5npPzUZf+VqMLp3Ln6yXPqyG4woDBnIlyIlEWRxJ/7xDEba6/YyON V7BltnxSWs0B5Y8qiwL14MY5QPKnJitL9LvIfOkWdf5SCloMiuZfUPBKvnf7RmHpBkpr 501g== X-Gm-Message-State: AHQUAuZJRAqZbgkEibXcf3MuJlK5GfDG/IxHIDcKMHs12ixqWJ4iT3nH TY2NFReb14HdzP++Mf7Pi7yO1XiQ X-Google-Smtp-Source: AHgI3IaOdEJlYGfGZFJ03LySCXK9Oa2itBY1PUrqSCZa559Bzvv8O1a10Md03zQeqa4HrWam4yA2fQ== X-Received: by 2002:a37:b405:: with SMTP id d5mr980783qkf.162.1550110242675; Wed, 13 Feb 2019 18:10:42 -0800 (PST) Return-Path: Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id d63sm1091575qka.22.2019.02.13.18.10.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 18:10:42 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.14 V2 13/17] ARM: clean up per-processor check_bugs method call Date: Wed, 13 Feb 2019 21:10:18 -0500 Message-Id: <20190214021022.5313-14-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214021022.5313-1-dave.long@linaro.org> References: <20190214021022.5313-1-dave.long@linaro.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: David A. Long --- arch/arm/include/asm/proc-fns.h | 1 + arch/arm/kernel/bugs.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/arm/include/asm/proc-fns.h b/arch/arm/include/asm/proc-fns.h index e25f4392e1b2..30c499146320 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 }