]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: ux500: Fix regression while init PM domains
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 6 Oct 2017 04:20:25 +0000 (06:20 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 19 Oct 2017 15:46:36 +0000 (17:46 +0200)
commitdaa514130ca42013f0da36edc7a4e2016307bf97
treed744ddc59d5df574501bb40ae6101398c13347d9
parent5e61425417d15f9579ee777e062febe5b2dcd610
ARM: ux500: Fix regression while init PM domains

The commit a5bc5f4e2b70 ("PM / Domains: Add time accounting to various
genpd states") causes a boot regression for ux500.

The problem occurs when the ux500 machine code calls pm_genpd_init(), which
since the above change triggers a call to ktime_get(). More precisely,
because ux500 initializes PM domains in the init_IRQ() phase of the boot,
timekeeping has not yet been initialized.

Fix the problem by moving the initialization of the PM domains to after
timekeeping has been initialized.

Fixes: a5bc5f4e2b70 ("PM / Domains: Add time accounting to various genpd..")
Cc: Thara Gopinath <thara.gopinath@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-ux500/cpu-db8500.c
arch/arm/mach-ux500/pm.c