Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175621
b: refs/heads/master
c: 2354eb5
h: refs/heads/master
i:
  175619: c651f0e
v: v3
  • Loading branch information
Paul Walmsley authored and paul committed Dec 12, 2009
1 parent ce4f25c commit cdb7666
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 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: 6a06fa6863f190a0ed72f273a2ae5fedc89973ff
refs/heads/master: 2354eb5a943e64c5e6e249147381e9715aa5d54b
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-omap2/pm-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ int pm_dbg_regset_save(int reg_set)
return 0;
}

static const char pwrdm_state_names[][4] = {
static const char pwrdm_state_names[][PWRDM_MAX_PWRSTS] = {
"OFF",
"RET",
"INA",
Expand Down Expand Up @@ -381,7 +381,7 @@ static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user)

seq_printf(s, "%s (%s)", pwrdm->name,
pwrdm_state_names[pwrdm->state]);
for (i = 0; i < 4; i++)
for (i = 0; i < PWRDM_MAX_PWRSTS; i++)
seq_printf(s, ",%s:%d", pwrdm_state_names[i],
pwrdm->state_counter[i]);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/powerdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static __init void _pwrdm_setup(struct powerdomain *pwrdm)
{
int i;

for (i = 0; i < 4; i++)
for (i = 0; i < PWRDM_MAX_PWRSTS; i++)
pwrdm->state_counter[i] = 0;

pwrdm_wait_transition(pwrdm);
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/arm/plat-omap/include/plat/powerdomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#define PWRDM_POWER_INACTIVE 0x2
#define PWRDM_POWER_ON 0x3

#define PWRDM_MAX_PWRSTS 4

/* Powerdomain allowable state bitfields */
#define PWRSTS_OFF_ON ((1 << PWRDM_POWER_OFF) | \
(1 << PWRDM_POWER_ON))
Expand Down Expand Up @@ -118,11 +120,11 @@ struct powerdomain {
struct list_head node;

int state;
unsigned state_counter[4];
unsigned state_counter[PWRDM_MAX_PWRSTS];

#ifdef CONFIG_PM_DEBUG
s64 timer;
s64 state_timer[4];
s64 state_timer[PWRDM_MAX_PWRSTS];
#endif
};

Expand Down

0 comments on commit cdb7666

Please sign in to comment.