summaryrefslogtreecommitdiffstats
path: root/arch/s390/mm
diff options
context:
space:
mode:
authorHeiko Carstens2012-08-27 15:43:49 +0200
committerMartin Schwidefsky2012-09-26 15:44:53 +0200
commit1c725922dd8274b6e0b370ad33cfaef9013fd70b (patch)
treebbb73a34f41d5772b100d629b1fffbcf0c612622 /arch/s390/mm
parents390/smp: fix smp_find_processor_id() argument mismatch (diff)
downloadkernel-qcow2-linux-1c725922dd8274b6e0b370ad33cfaef9013fd70b.tar.gz
kernel-qcow2-linux-1c725922dd8274b6e0b370ad33cfaef9013fd70b.tar.xz
kernel-qcow2-linux-1c725922dd8274b6e0b370ad33cfaef9013fd70b.zip
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/mm')
-rw-r--r--arch/s390/mm/fault.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index 6c013f544146..12c887bcdf1f 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -628,9 +628,8 @@ static int __cpuinit pfault_cpu_notify(struct notifier_block *self,
struct thread_struct *thread, *next;
struct task_struct *tsk;
- switch (action) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_DEAD:
- case CPU_DEAD_FROZEN:
spin_lock_irq(&pfault_lock);
list_for_each_entry_safe(thread, next, &pfault_list, list) {
thread->pfault_wait = 0;