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 e25f439..30c4991 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 7be5113..d41d359 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
 }