Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355611
b: refs/heads/master
c: c165a14
h: refs/heads/master
i:
  355609: 965252b
  355607: 7d96653
v: v3
  • Loading branch information
Jean Pihet authored and Paul Walmsley committed Jan 29, 2013
1 parent 15d131a commit d0dfb30
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 32d174ed1bd793e9be578914cce6b1e45c36843e
refs/heads/master: c165a14023ecec8a68f3b87d0c3c822426065937
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-omap2/powerdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static void _update_logic_membank_counters(struct powerdomain *pwrdm)
static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
{

int prev, state, trace_state = 0;
int prev, next, state, trace_state = 0;

if (pwrdm == NULL)
return -EINVAL;
Expand All @@ -164,9 +164,10 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag)
* If the power domain did not hit the desired state,
* generate a trace event with both the desired and hit states
*/
if (state != prev) {
next = pwrdm_read_next_pwrst(pwrdm);
if (next != prev) {
trace_state = (PWRDM_TRACE_STATES_FLAG |
((state & OMAP_POWERSTATE_MASK) << 8) |
((next & OMAP_POWERSTATE_MASK) << 8) |
((prev & OMAP_POWERSTATE_MASK) << 0));
trace_power_domain_target(pwrdm->name, trace_state,
smp_processor_id());
Expand Down

0 comments on commit d0dfb30

Please sign in to comment.