lkml.org 
[lkml]   [2019]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 69/75] ARM: clean up per-processor check_bugs method call
    Date
    From: Russell King <rmk+kernel@armlinux.org.uk>

    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>
    Reviewed-by: Julien Thierry <julien.thierry@arm.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/arm/include/asm/proc-fns.h | 1 +
    arch/arm/kernel/bugs.c | 4 ++--
    2 files changed, 3 insertions(+), 2 deletions(-)

    --- 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
    --- 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
    }


    \
     
     \ /
      Last update: 2019-11-08 20:23    [W:2.489 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site