diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-01-09 13:09:16 -0500 |
---|---|---|
committer | David A. Long <dave.long@linaro.org> | 2019-02-13 12:08:56 -0500 |
commit | 1c05ba4bf94f43fd16f7ded5e86dfc488c08a662 (patch) | |
tree | 046a50f07b4a8645822355e6e2d07af57cb8ebef | |
parent | d0d3474f811b3aa0d5670b8ce333174860f24b06 (diff) |
ARM: clean up per-processor check_bugs method call
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 <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David A. Long <dave.long@linaro.org>
-rw-r--r-- | arch/arm/include/asm/proc-fns.h | 1 | ||||
-rw-r--r-- | arch/arm/kernel/bugs.c | 4 |
2 files changed, 3 insertions, 2 deletions
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 } |