lkml.org 
[lkml]   [2014]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v1 23/70] mips, loongson, smp: _FROZEN Cleanup
    Date
    Remove XXX_FROZEN state from loongson/smp.

    Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
    ---
    arch/mips/loongson/loongson-3/smp.c | 5 +----
    1 file changed, 1 insertion(+), 4 deletions(-)

    diff --git a/arch/mips/loongson/loongson-3/smp.c b/arch/mips/loongson/loongson-3/smp.c
    index 1e88940..30b91e8 100644
    --- a/arch/mips/loongson/loongson-3/smp.c
    +++ b/arch/mips/loongson/loongson-3/smp.c
    @@ -389,20 +389,17 @@ void play_dead(void)
    play_dead_at_ckseg1(state_addr);
    }

    -#define CPU_POST_DEAD_FROZEN (CPU_POST_DEAD | CPU_TASKS_FROZEN)
    static int loongson3_cpu_callback(struct notifier_block *nfb,
    unsigned long action, void *hcpu)
    {
    unsigned int cpu = (unsigned long)hcpu;

    - switch (action) {
    + switch (action & ~CPU_TASKS_FROZEN) {
    case CPU_POST_DEAD:
    - case CPU_POST_DEAD_FROZEN:
    pr_info("Disable clock for CPU#%d\n", cpu);
    LOONGSON_CHIPCFG0 &= ~(1 << (12 + cpu));
    break;
    case CPU_UP_PREPARE:
    - case CPU_UP_PREPARE_FROZEN:
    pr_info("Enable clock for CPU#%d\n", cpu);
    LOONGSON_CHIPCFG0 |= 1 << (12 + cpu);
    break;
    --
    2.0.0.rc2


    \
     
     \ /
      Last update: 2014-07-23 05:21    [W:4.083 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site