[RFC PATCH v1 25/70] sparc, sysfs: _FROZEN Cleanup

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


Remove XXX_FROZEN state from sparc/sysfs.

Signed-off-by: Chen, Gong <gong.chen@xxxxxxxxxxxxxxx>
---
arch/sparc/kernel/sysfs.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sysfs.c
index 7f41d40..e15a4b8 100644
--- a/arch/sparc/kernel/sysfs.c
+++ b/arch/sparc/kernel/sysfs.c
@@ -251,14 +251,12 @@ static int sysfs_cpu_notify(struct notifier_block *self,
{
unsigned int cpu = (unsigned int)(long)hcpu;

- switch (action) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
- case CPU_ONLINE_FROZEN:
register_cpu_online(cpu);
break;
#ifdef CONFIG_HOTPLUG_CPU
case CPU_DEAD:
- case CPU_DEAD_FROZEN:
unregister_cpu_online(cpu);
break;
#endif
--
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/