Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42862
b: refs/heads/master
c: a38a44c
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 7, 2006
1 parent e597da7 commit c675e4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83df8db9e62129975fab6d800fb381faf0dfee74
refs/heads/master: a38a44c1a93078fc5fadc4ac2df8dea4697069e2
4 changes: 4 additions & 0 deletions trunk/arch/i386/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,10 @@ int smp_call_function_single(int cpu, void (*func) (void *info), void *info,
put_cpu();
return -EBUSY;
}

/* Can deadlock when called with interrupts disabled */
WARN_ON(irqs_disabled());

spin_lock_bh(&call_lock);
__smp_call_function_single(cpu, func, info, nonatomic, wait);
spin_unlock_bh(&call_lock);
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/x86_64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ int smp_call_function_single (int cpu, void (*func) (void *info), void *info,
put_cpu();
return 0;
}

/* Can deadlock when called with interrupts disabled */
WARN_ON(irqs_disabled());

spin_lock_bh(&call_lock);
__smp_call_function_single(cpu, func, info, nonatomic, wait);
spin_unlock_bh(&call_lock);
Expand Down

0 comments on commit c675e4f

Please sign in to comment.