Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14077
b: refs/heads/master
c: 4557398
h: refs/heads/master
i:
  14075: aef8e5e
v: v3
  • Loading branch information
Kirill Korotaev authored and Linus Torvalds committed Nov 14, 2005
1 parent 2e08f57 commit 79d35da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: c5b609797b8e212dbfaf23944da8bf8c53233d5c
refs/heads/master: 4557398f8cbaf9f254cff747534b4724c7f75c4f
6 changes: 3 additions & 3 deletions trunk/kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,12 @@ static int stop_machine(void)
return ret;
}

/* Don't schedule us away at this point, please. */
local_irq_disable();

/* Now they are all started, make them hold the CPUs, ready. */
preempt_disable();
stopmachine_set_state(STOPMACHINE_PREPARE);

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

return 0;
Expand All @@ -135,6 +134,7 @@ static void restart_machine(void)
{
stopmachine_set_state(STOPMACHINE_EXIT);
local_irq_enable();
preempt_enable_no_resched();
}

struct stop_machine_data
Expand Down

0 comments on commit 79d35da

Please sign in to comment.