Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123
b: refs/heads/master
c: 43117a0
h: refs/heads/master
i:
  121: d64e0df
  119: 5619ea1
v: v3
  • Loading branch information
Alexander Nyberg authored and Linus Torvalds committed Apr 16, 2005
1 parent ed29b56 commit b7dfb3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: bf2049f983eb47f9463d3dd54abd82e3e58846f9
refs/heads/master: 43117a08280e40be43e181c51cce296ef4b4c7e5
4 changes: 2 additions & 2 deletions trunk/kernel/power/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ static cpumask_t oldmask;

void disable_nonboot_cpus(void)
{
printk("Freezing CPUs (at %d)", smp_processor_id());
oldmask = current->cpus_allowed;
set_cpus_allowed(current, cpumask_of_cpu(0));
printk("Freezing CPUs (at %d)", _smp_processor_id());
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ);
printk("...");
BUG_ON(smp_processor_id() != 0);
BUG_ON(_smp_processor_id() != 0);

/* FIXME: for this to work, all the CPUs must be running
* "idle" thread (or we deadlock). Is that guaranteed? */
Expand Down

0 comments on commit b7dfb3a

Please sign in to comment.