lkml.org 
[lkml]   [2013]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 3/6] ARM: RealView: use the core cpu hotplug functions
    Date
    Generic arm cpu hotplug related functions are moved to core hotplug code,
    remove the functions from the platform code.

    Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
    ---
    arch/arm/mach-realview/hotplug.c | 37 +------------------------------------
    1 file changed, 1 insertion(+), 36 deletions(-)

    diff --git a/arch/arm/mach-realview/hotplug.c b/arch/arm/mach-realview/hotplug.c
    index ac22dd4..a48cc71 100644
    --- a/arch/arm/mach-realview/hotplug.c
    +++ b/arch/arm/mach-realview/hotplug.c
    @@ -14,42 +14,7 @@

    #include <asm/cp15.h>
    #include <asm/smp_plat.h>
    -
    -static inline void cpu_enter_lowpower(void)
    -{
    - unsigned int v;
    -
    - asm volatile(
    - " mcr p15, 0, %1, c7, c5, 0\n"
    - " mcr p15, 0, %1, c7, c10, 4\n"
    - /*
    - * Turn off coherency
    - */
    - " mrc p15, 0, %0, c1, c0, 1\n"
    - " bic %0, %0, #0x20\n"
    - " mcr p15, 0, %0, c1, c0, 1\n"
    - " mrc p15, 0, %0, c1, c0, 0\n"
    - " bic %0, %0, %2\n"
    - " mcr p15, 0, %0, c1, c0, 0\n"
    - : "=&r" (v)
    - : "r" (0), "Ir" (CR_C)
    - : "cc");
    -}
    -
    -static inline void cpu_leave_lowpower(void)
    -{
    - unsigned int v;
    -
    - asm volatile( "mrc p15, 0, %0, c1, c0, 0\n"
    - " orr %0, %0, %1\n"
    - " mcr p15, 0, %0, c1, c0, 0\n"
    - " mrc p15, 0, %0, c1, c0, 1\n"
    - " orr %0, %0, #0x20\n"
    - " mcr p15, 0, %0, c1, c0, 1\n"
    - : "=&r" (v)
    - : "Ir" (CR_C)
    - : "cc");
    -}
    +#include <asm/hotplug.h>

    static inline void platform_do_lowpower(unsigned int cpu, int *spurious)
    {
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2013-05-20 09:01    [W:4.380 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site