Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313562
b: refs/heads/master
c: 063a5d0
h: refs/heads/master
v: v3
  • Loading branch information
Jean Pihet authored and Kevin Hilman committed Jun 25, 2012
1 parent 2fa2151 commit 4f924e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 34059a878f5cb20652cbc937f35c925f2b378831
refs/heads/master: 063a5d011698950c86a01044394105605556e92c
8 changes: 1 addition & 7 deletions trunk/arch/arm/mach-omap2/cpuidle34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ static int next_valid_state(struct cpuidle_device *dev,
u32 mpu_deepest_state = PWRDM_POWER_RET;
u32 core_deepest_state = PWRDM_POWER_RET;
int idx;
int next_index = -1;
int next_index = 0; /* C1 is the default value */

if (enable_off_mode) {
mpu_deepest_state = PWRDM_POWER_OFF;
Expand Down Expand Up @@ -209,12 +209,6 @@ static int next_valid_state(struct cpuidle_device *dev,
}
}

/*
* C1 is always valid.
* So, no need to check for 'next_index == -1' outside
* this loop.
*/

return next_index;
}

Expand Down

0 comments on commit 4f924e5

Please sign in to comment.