From patchwork Thu Feb 14 14:49:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 158406 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1462350jaa; Thu, 14 Feb 2019 06:49:49 -0800 (PST) X-Received: by 2002:ac8:67c3:: with SMTP id r3mr3255738qtp.309.1550155789500; Thu, 14 Feb 2019 06:49:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550155789; cv=none; d=google.com; s=arc-20160816; b=Nk+vkNQgl2FS+f83Oq0lKYLFtDiHEG74mwRtE1JUD7nLH0qtVU3tj3LUt30tP0d7Hf gtw2k3epniBXrRfJUoruMCSaHnhELHNf1H5aU4vJQMEFSvvAszEPzc48cv5nafUkXeyO jcqyMgWUtAsS0AGMeOjVc+TYkmdxuIif966t0g4PnBCemm0XPZok4B4Yo3WavkgOcCJR d1S1g31CQFgbhRsQprhILohERhPWWd+ELyD54xSM9HB8zZtaun3OJke4fnKSh4CIXYD+ r4lPDoHQlJ6QGT41O2jjZDTH8mQc7kZevsNvJ3by+pKHdIByFkuWUWxCOxKxA50NojOF zd+g== 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=pAnOVz2Tf8tfyn6B3aYtP2aMoS37wFyp7WQ4pd7h468=; b=muWlHYcz2REPcwf/JUXxj9VYLfJGFXk9REK59pIIOBX06Y86hEuYYxqjBRhtc0yFdQ CUCHK8tnYbDSO6zDn2JA8WTrnrKrb1fkmljcGRYnWqndotgChf6/1ajgjGJJquJ+C9JI vacX8T5ZxSRaqcgeH/xCBxG1/Rv0ApHMKx6gwM8ki4PxhQEBBTxAj5I7rzUNrpElf2pX XTYaDLTaCeD+rHQjZKzSeb0a2J1rOcIWxdGaYoW54ndQFXq/Wihy6odziEXtJVr0xoIV a9HoaiqcFWgJiVuh/pna1zaw2oyxAUqT94ddZyGsOL37/9jEkpr+3Z8UHpjS+sFRL0/Z 821Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqqa4c05; 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 r8sor2913258qvp.50.2019.02.14.06.49.49 for (Google Transport Security); Thu, 14 Feb 2019 06:49:49 -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=oqqa4c05; 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=pAnOVz2Tf8tfyn6B3aYtP2aMoS37wFyp7WQ4pd7h468=; b=oqqa4c05/tE/es628OJr0AKarImUFLu26ac/Z2ZYTTtqFs/psM0+eQUYUQoJofhFkW wD9y+ej56HVjNfAxvZ5nboB/WZMEhObRwTJcRdf8BwMVUZMXaJFbmkjLSE/wHf4LaKgh 8GO1ZBrEBfz63r0DJDKGYYhiSd2VQnxKUOq2at73VFQIFbDKwg9XUgM2RHKH5pzhgKAX t9XmWVZbDhv+TSxnyiFbqZBtYm0QT0GHBNI5XTWOs27srmfzsYzVM32z3DMhBbReLFWF +Y2LQNcgMvio+lC+DxKGCK4wXHbU+SY912+rsCTws1OYuHdW5+F2VlIeNcqU2XzmvF1e vtPg== 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=pAnOVz2Tf8tfyn6B3aYtP2aMoS37wFyp7WQ4pd7h468=; b=Bo9XPncwAd4TSXrFjp+I4aTduOQAw5xI44378hjn/45Z1GIBbDWS90TDd/7+yYfUHl ZnkNlyAR2N1teJl2Zj16u6v0H7UEWRj71Ikzz0as8pjmJOknjxZMtuv9zjemxTS5p2UH MZq783rADlddhgUtJNL52PXhhEe+WVYXCP5IyymC+L/rxqRx8JxteVRHrITbc6yj0iKK jdiQcpK90p1WoZM1NNxKVW/gdHNgm+ivR3a1NmvR4G7O1QdPDSWK/ku63qdwvHBZ5oHN M6Q+1IbQIsCMvpSJCAQYKyNURhVj2Z3D10A7w+GocvGCVQPbtZggxOeof7Vd1R/vvcKb 96bw== X-Gm-Message-State: AHQUAuaJTjP5X0+uONh9uXFyOATrX8OIE/DbxYPhQBpcL1YjyQUy2BF8 ntTdyqFwMlsFgzlCRtxbMMcsNoEl X-Google-Smtp-Source: AHgI3Ia2uIekICFgLPjSDp7jsbXUE+qOpPavV0Iei1TrHkndAodE352FX+21VP3xhYCudJAwVLsGXA== X-Received: by 2002:a0c:c3d0:: with SMTP id p16mr3259210qvi.47.1550155789277; Thu, 14 Feb 2019 06:49:49 -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 k66sm1498919qkc.25.2019.02.14.06.49.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:49:48 -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.9 12/16] ARM: clean up per-processor check_bugs method call Date: Thu, 14 Feb 2019 09:49:26 -0500 Message-Id: <20190214144930.27539-13-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190214144930.27539-1-dave.long@linaro.org> References: <20190214144930.27539-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 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 }