[RFC PATCH v1 23/70] mips, loongson, smp: _FROZEN Cleanup

From: Chen, Gong
Date: Tue Jul 22 2014 - 22:33:44 EST


Remove XXX_FROZEN state from loongson/smp.

Signed-off-by: Chen, Gong <gong.chen@xxxxxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/