Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63093
b: refs/heads/master
c: 8da1aec
h: refs/heads/master
i:
  63091: 7e2d92f
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 27, 2007
1 parent cf1c987 commit 64f0d70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bb447fc8bb6523cb1cec7a0277d831a2b0462b7
refs/heads/master: 8da1aecde00b74d63123e6031155bbb1424b338d
14 changes: 6 additions & 8 deletions trunk/arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void __smp_call_function_map(void (*func) (void *info), void *info,
if (wait)
data.finished = CPU_MASK_NONE;

spin_lock_bh(&call_lock);
spin_lock(&call_lock);
call_data = &data;

for_each_cpu_mask(cpu, map)
Expand All @@ -129,18 +129,16 @@ static void __smp_call_function_map(void (*func) (void *info), void *info,
/* Wait for response */
while (!cpus_equal(map, data.started))
cpu_relax();

if (wait)
while (!cpus_equal(map, data.finished))
cpu_relax();

spin_unlock_bh(&call_lock);

spin_unlock(&call_lock);
out:
local_irq_disable();
if (local)
if (local) {
local_irq_disable();
func(info);
local_irq_enable();
local_irq_enable();
}
}

/*
Expand Down

0 comments on commit 64f0d70

Please sign in to comment.