[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406080786-3938-24-git-send-email-gong.chen@linux.intel.com>
Date: Tue, 22 Jul 2014 21:58:59 -0400
From: "Chen, Gong" <gong.chen@...ux.intel.com>
To: linux-kernel@...r.kernel.org
Cc: mingo@...nel.org, tglx@...utronix.de, paulus@...ba.org,
benh@...nel.crashing.org, tony.luck@...el.com, hpa@...or.com,
jkosina@...e.cz, rafael.j.wysocki@...el.com, bp@...en8.de,
linux@....linux.org.uk, ralf@...ux-mips.org,
schwidefsky@...ibm.com, davem@...emloft.net,
viro@...iv.linux.org.uk, fweisbec@...il.com, cl@...ux.com,
akpm@...ux-foundation.org, axboe@...nel.dk,
JBottomley@...allels.com, neilb@...e.de,
christoffer.dall@...aro.org, rostedt@...dmis.org, rric@...nel.org,
gregkh@...uxfoundation.org, mhocko@...e.cz, david@...morbit.com,
"Chen, Gong" <gong.chen@...ux.intel.com>
Subject: [RFC PATCH v1 23/70] mips, loongson, smp: _FROZEN Cleanup
Remove XXX_FROZEN state from loongson/smp.
Signed-off-by: Chen, Gong <gong.chen@...ux.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists