diff options
author | Volodymyr Riazantsev <v.riazantsev@ti.com> | 2011-12-12 02:20:06 +0200 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-10-01 12:55:28 +0200 |
commit | 7870db901d6a46f24e0b8d0a256550b10260a5ad (patch) | |
tree | c9f599af8c44a07499e0c37cedc22ab2429e21de /arch | |
parent | 0867cf34b757571e6e400a43c294ec485f07b43e (diff) | |
download | kernel_samsung_tuna-7870db901d6a46f24e0b8d0a256550b10260a5ad.zip kernel_samsung_tuna-7870db901d6a46f24e0b8d0a256550b10260a5ad.tar.gz kernel_samsung_tuna-7870db901d6a46f24e0b8d0a256550b10260a5ad.tar.bz2 |
OMAP4: PM: Correct powerstates initialization sequence
During initialization of new powerstate item it
should be added into list before it's configuration.
Initialization of powerstates skiped for CORE, MPU,
CPU0, CPU1 powerdomains. Current implementation caused
incorrect initialization of powerstate at least for
GFX PWRDM because it masked by CORE PWRDM.
We should add powerstate node to list before it will
been initialized.
Change-Id: I2f9274a9ec951eb9f6b54e104a0e14921b61264e
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
Diffstat (limited to 'arch')
-rwxr-xr-x | arch/arm/mach-omap2/pm44xx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index a510494..984e67f 100755 --- a/arch/arm/mach-omap2/pm44xx.c +++ b/arch/arm/mach-omap2/pm44xx.c @@ -899,6 +899,9 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused) #endif pwrst->pwrdm = pwrdm; + + list_add(&pwrst->node, &pwrst_list); + if ((!strcmp(pwrdm->name, "mpu_pwrdm")) || (!strcmp(pwrdm->name, "core_pwrdm")) || (!strcmp(pwrdm->name, "cpu0_pwrdm")) || |