Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172770
b: refs/heads/master
c: cf22854
h: refs/heads/master
v: v3
  • Loading branch information
Tero Kristo authored and Kevin Hilman committed Nov 11, 2009
1 parent 9ad0924 commit a4afee9
Show file tree
Hide file tree
Showing 3 changed files with 4 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: da869621c3cd93d5a8361f243b50e5d48d12bd14
refs/heads/master: cf22854cee10e16e28b1dde136c37e82b7d503ee
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-omap2/cpuidle34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* published by the Free Software Foundation.
*/

#include <linux/sched.h>
#include <linux/cpuidle.h>

#include <plat/prcm.h>
Expand Down Expand Up @@ -113,7 +114,7 @@ static int omap3_enter_idle(struct cpuidle_device *dev,
pwrdm_set_next_pwrst(mpu_pd, mpu_state);
pwrdm_set_next_pwrst(core_pd, core_state);

if (omap_irq_pending())
if (omap_irq_pending() || need_resched())
goto return_sleep_time;

if (cx->type == OMAP3_STATE_C1) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/pm34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ static void omap3_pm_idle(void)
if (!omap3_can_sleep())
goto out;

if (omap_irq_pending())
if (omap_irq_pending() || need_resched())
goto out;

omap_sram_idle();
Expand Down

0 comments on commit a4afee9

Please sign in to comment.