diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-08-27 09:43:49 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-09-26 09:44:53 -0400 |
commit | 1c725922dd8274b6e0b370ad33cfaef9013fd70b (patch) | |
tree | bbb73a34f41d5772b100d629b1fffbcf0c612622 /arch/s390/kernel/smp.c | |
parent | 0d0e471b46d4ba1de4617d04cf071c6ae4a5df76 (diff) |
s390/cpu hotplug: mask out CPU_TASKS_FROZEN in cu hotplug notifiers
Unify all our cpu hotplug notifiers to mask out the CPU_TASKS_FROZEN
bit, so we don't have to add all the *_FROZEN variant cases to the
notifiers.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r-- | arch/s390/kernel/smp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 823c5bfecfea..87be1024d91b 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -959,13 +959,11 @@ static int __cpuinit smp_cpu_notify(struct notifier_block *self, | |||
959 | struct device *s = &c->dev; | 959 | struct device *s = &c->dev; |
960 | int err = 0; | 960 | int err = 0; |
961 | 961 | ||
962 | switch (action) { | 962 | switch (action & ~CPU_TASKS_FROZEN) { |
963 | case CPU_ONLINE: | 963 | case CPU_ONLINE: |
964 | case CPU_ONLINE_FROZEN: | ||
965 | err = sysfs_create_group(&s->kobj, &cpu_online_attr_group); | 964 | err = sysfs_create_group(&s->kobj, &cpu_online_attr_group); |
966 | break; | 965 | break; |
967 | case CPU_DEAD: | 966 | case CPU_DEAD: |
968 | case CPU_DEAD_FROZEN: | ||
969 | sysfs_remove_group(&s->kobj, &cpu_online_attr_group); | 967 | sysfs_remove_group(&s->kobj, &cpu_online_attr_group); |
970 | break; | 968 | break; |
971 | } | 969 | } |