ARM: clean up per-processor check_bugs method call
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 19 Jul 2018 11:43:03 +0000 (12:43 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 12 Nov 2018 10:51:01 +0000 (10:51 +0000)
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>
arch/arm/include/asm/proc-fns.h
arch/arm/kernel/bugs.c

index e25f4392e1b2868446de858701d408aaaee26eab..30c499146320dc264790691a6f67165a86135fda 100644 (file)
@@ -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
index 7be5113101915cd81a5558f45238041138fb5a58..d41d3598e5e541115c08f9b81b26fd187a7fe7af 100644 (file)
@@ -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
 }