From patchwork Thu Jan 10 17:51:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 155256 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2176332jaa; Thu, 10 Jan 2019 09:52:12 -0800 (PST) X-Received: by 2002:aed:24b7:: with SMTP id t52mr10779123qtc.131.1547142732611; Thu, 10 Jan 2019 09:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547142732; cv=none; d=google.com; s=arc-20160816; b=RjyWmA6pwe3b59ddNZ7jERXQ8QtUV/lm6tJd8VLcFOJWuvizmqvnvaBkVUNAGEDo3F HME0I/Cs1XZFjdnuDH8b+vnB0uGIGx1FrCawE7WtcIx6AmMF+yMlXIWM6/batjBlyVP/ R0sJLarqoACUq4E0mNPzXF74ESKAzG06xPJiIy/Si36C3KyP+IVSVJIq4vKQI/QgOrWu Q/KNUKof4HHrACis3YOrw3BHnGOWLoapOoYUY4FK3wbvC0/xUePeUEXtj6u0yQsn0PVY BJs8eA+fUPzpxPiLGgSAPrzmVy+iCX3w4RRBkmpwMAfB1BND91tYXM+Ex9kHJDct+0fg p/fw== 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=IE5z7WkIGzOnWKYvNn6YYPWBYxxifh9dUK5GYsTxtTPwy5hTnoNrI38tHsPlqBkRvB nZEL9Rpxc4lIeQqUzQ+Rp+Uhi3IkZdu687V20cnHnF+RNtYq38sV/7cEVRRaaHMqtO5s ozS8Ps6Kgo+GNBykW/Lqxq5uNZ7qpJq6k07qWvWZNxirKjko29O1eg43hRuroyeqMMyv rL6fh5/NkkuffFzfVWI4oTASzVRfWosXRrDBxbmLizMmvOr8c9d1v0ZOEyKbgoJIMjkn 5naP9uPB4aONokxwNPhYaiJ81S4cNOBAhteHfgdkTZlJhu0WOXlPHvvSZUWsmAphqf5b UafA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfpKYWGJ; 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 p126sor36657249qkd.106.2019.01.10.09.52.12 for (Google Transport Security); Thu, 10 Jan 2019 09:52:12 -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=PfpKYWGJ; 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=PfpKYWGJ4eIZstKw6WStQx39q+x5lfvvjnhDlJf1RtDdVNlVlsZJdz+Oo0CxZKLM8D Y1qxnPoczCvJ+BpwXOuExtG4dVFM4D8il1iP9AXOcnCvSM1WulxW+cpMqBjphQDiFQIO NwMfqWYEdIld2nDLyOahXBO0elYu2C5zdLl84= 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=PQrzj9X36IdeRCamdOMpJrSHnv4UNX12J/UfSPyJ3c5OIcUkt02CoKJgTmfRZFAApr 9GmF8Qa9CsimP/9R83GycQaMUSe6hLqIlCfDgGN3sJKEAuJ0n4DVK6d52S/owFkCrxU1 VlIutI7hK15e9yzsiMVUumH+SNyUfiiIpUCfYvS0KJzeyqt+A6JdC5xdlZHnAgiEBG3U SdwrpTpoC6KGMuGan6ENZIuuXKreUzhCO8GDzDDT0myAjAcKpuHV4A+c5q+0G1xajT9K PhN/SfTTTKR1oIKD4/dKaOmyTxYWqd06Uf6B3La3uBptC3MylzCpFcDzqFHVY3485SOq 0kew== X-Gm-Message-State: AJcUukdN5oK+zv5xNd44xniZcZcuMtAHXYywJ1+Bh6+MtZ5mBSdlT9K2 bh4j/jCTBjV7DKyRW06jo1oSuyuK X-Google-Smtp-Source: ALg8bN7xvQYniPdbpKztoOl2htQBof9f3rBnevIbzq7Ez5cUZmcV/6QlvpJgxwQARDp40SftShZttQ== X-Received: by 2002:a37:b942:: with SMTP id j63mr10289148qkf.67.1547142732369; Thu, 10 Jan 2019 09:52:12 -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 b8sm41815904qka.79.2019.01.10.09.52.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 09:52:11 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Mark Rutland Cc: Greg KH , Mark Brown Subject: [PATCH 4.14 13/17] ARM: clean up per-processor check_bugs method call Date: Thu, 10 Jan 2019 12:51:46 -0500 Message-Id: <20190110175150.5239-14-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110175150.5239-1-dave.long@linaro.org> References: <20190110175150.5239-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 }