From patchwork Wed Feb 13 21:32:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158265 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp561013jaa; Wed, 13 Feb 2019 13:32:43 -0800 (PST) X-Received: by 2002:ac8:6b8a:: with SMTP id z10mr237095qts.248.1550093563880; Wed, 13 Feb 2019 13:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550093563; cv=none; d=google.com; s=arc-20160816; b=caMzMC+a9jmdXggjZn4hLbFnZQaMyP/hVBcjXaB5yUe2HgDlqm2wSFRHDDyVgApTBa aLLjNunhWohaAzhI4U9eAQ6KK0GvFC+zj3GnohLSfkgplBbv2yBtNsGdjsQ8dOtB5HzH jp7XODYZ/UYW9/ZsZreZIJFCoG8HuviZnBuMplm/wPV0d45ErSPyuMg/ct2yCpnX4/As JBoPpktTZzR8pWCOq4swsFjFYrH9oJleuybZsgtjArbz3I/aP8RTrRt8DvjvOo95fkM2 N/0rDPwvnIPqWfEVa+ptAbQ5wzLn04og9PlIomuimBaN6QA2TQ0cOOL0oBmu//YjdH88 M2gw== 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=oOxULO30O/T1o3sUZsRxaHuclhCWB1a8G6KMPys3KCq5beR6xOG2zwC5Y8ZVXCHujS cn23HVrSMLALEDw4FXd3Ti/a7+nyGSgMDzBa6QTEJaGI6T3Db4iDl/RlHPxft2/QNxi3 xYxa6guxoBjVcKhtPNkUcygkvGbI2aSYtS/ELpEgJeH5TlENOe4aE6DteoBfWWMn/SJu bK0dtHlkM7Z6r+Is5UqocD03KWqr7EcG5NRquPUrgderHEkuUETeFKtrPy+H4RMXFhJt yoYjDBWlELa2jWRyn7e8XAl7iomlW00zYEn/d/J3y7132k25/ncDEdX1N8gI6mbGPV5X oD5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w4LDUYdI; 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 g184sor258714qkb.75.2019.02.13.13.32.43 for (Google Transport Security); Wed, 13 Feb 2019 13:32:43 -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=w4LDUYdI; 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=w4LDUYdIBqi9i2H0zziVwl6xNlsb4JOGyxns0NY9Sc4Sp2k3RVUCaQDCson84MAuNS dRrE+nsabr/JWzpawl59qNV0Rj3XRFptqCq7GHaFyFep2yisjAv/8tQyTPg9CURB+5Vy f+CSRuDeeOTu4XfRZsxf8pgRoyd0Y0TtogDnA1QSohGyrujR0FYqxQ1RsRukw/Se6Rcu c6P2wxurSjaA4iTmYvrHrE7mJxjK/kneUktI/h5rl3XsZK5n+QpdYw/aC5gvjhbJCNd2 n/IPbUKeQ8Zg9s4j9q7qpLRPTkX+c9bVuTCuam0GKeyiGo3vBe4BH753ytTMXL5oj0FH TLCg== 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=W/0E0b2tQuUBpDB6JnWeJ/JnXgn5UcZDLJtWx4WNGXWBQf09BDdpf8rqv8NqAz+EiH JXowYhbNJmRycnAIZ7A6jXAF/SWZa8tPaUTS8lkIYtu3qGbSc5ylg+hmZQ9IgK2b2WTl mI7W7yHeV8Mc3I7PsRErVriT90PfQxqgUjL0CgtgKUKVC4JRXaAriAqxXZN5wcP/nTls FLEW4/bS6KRv1YVDmet7kdthp9ow9+br9UDSJdZjPUbEjBc5NJNdKtcTPLKWtHst39tl 7rRJWmpmDXLYOeSaht6dUEFckXJnP8ClRQ1ij3oRhFc/GovBn0sZBJTNImKhGKGtvQY6 yZAw== X-Gm-Message-State: AHQUAubfDGtnBt311upaZa885abRm6bDI7khT1WUC/GJ6TYk2msZw6PH xTXiBWZDI5aSpSCJ9q+cNTb4v+Ao X-Google-Smtp-Source: AHgI3Iajkc5bd5I0MEuJUUPhXGht8qFhAq1IUEOOB3PAMLsj1uf6kgzkrqxuyR9KOY1mOkKL47TcJg== X-Received: by 2002:a37:cf9d:: with SMTP id v29mr189595qkl.259.1550093563621; Wed, 13 Feb 2019 13:32:43 -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 8sm382675qtr.7.2019.02.13.13.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32:43 -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.19 13/17] ARM: clean up per-processor check_bugs method call Date: Wed, 13 Feb 2019 16:32:19 -0500 Message-Id: <20190213213223.916-14-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213213223.916-1-dave.long@linaro.org> References: <20190213213223.916-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 }