Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55905
b: refs/heads/master
c: a12bb44
h: refs/heads/master
i:
  55903: c376a2b
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed May 11, 2007
1 parent f5b3443 commit eee6f43
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2d3fbbb391e280724f7f7804ab00ff61cf1b6a4c
refs/heads/master: a12bb44471b819c7f33d8a83044e7116c124e3d5
4 changes: 4 additions & 0 deletions trunk/kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <linux/sched.h>
#include <linux/stop_machine.h>
#include <linux/syscalls.h>
#include <linux/interrupt.h>

#include <asm/atomic.h>
#include <asm/semaphore.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -45,6 +47,7 @@ static int stopmachine(void *cpu)
if (stopmachine_state == STOPMACHINE_DISABLE_IRQ
&& !irqs_disabled) {
local_irq_disable();
hard_irq_disable();
irqs_disabled = 1;
/* Ack: irqs disabled. */
smp_mb(); /* Must read state first. */
Expand Down Expand Up @@ -124,6 +127,7 @@ static int stop_machine(void)

/* Make them disable irqs. */
local_irq_disable();
hard_irq_disable();
stopmachine_set_state(STOPMACHINE_DISABLE_IRQ);

return 0;
Expand Down

0 comments on commit eee6f43

Please sign in to comment.