Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57974
b: refs/heads/master
c: d5a3d32
h: refs/heads/master
v: v3
  • Loading branch information
Venkatesh Pallipadi authored and Len Brown committed Jun 23, 2007
1 parent 33332da commit 16dc465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 83dd4504456d4b5e464d6ec4a7665e2c922db67f
refs/heads/master: d5a3d32a042126f65a008e0e5204ef92ad2ee55d
10 changes: 6 additions & 4 deletions trunk/drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,18 @@ static void acpi_processor_idle(void)
int sleep_ticks = 0;
u32 t1, t2 = 0;

pr = processors[smp_processor_id()];
if (!pr)
return;

/*
* Interrupts must be disabled during bus mastering calculations and
* for C2/C3 transitions.
*/
local_irq_disable();

pr = processors[smp_processor_id()];
if (!pr) {
local_irq_enable();
return;
}

/*
* Check whether we truly need to go idle, or should
* reschedule:
Expand Down

0 comments on commit 16dc465

Please sign in to comment.