clk: samsung: exynos5420: Preserve CPU clocks configuration during suspend/resume
authorMarian Mihailescu <mihailescu2m@gmail.com>
Tue, 29 Oct 2019 00:50:25 +0000 (11:20 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:45:48 +0000 (19:45 +0100)
commit e21be0d1d7bd7f78a77613f6bcb6965e72b22fc1 upstream.

Save and restore top PLL related configuration registers for big (APLL)
and LITTLE (KPLL) cores during suspend/resume cycle. So far, CPU clocks
were reset to default values after suspend/resume cycle and performance
after system resume was affected when performance governor has been selected.

Fixes: 773424326b51 ("clk: samsung: exynos5420: add more registers to restore list")
Signed-off-by: Marian Mihailescu <mihailescu2m@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/samsung/clk-exynos5420.c

index 47a14f93f8693e68c401bb3d8e09746b2c844429..2f54df5bef8e58470846ac5585e4a5b5d064f591 100644 (file)
@@ -170,6 +170,8 @@ static const unsigned long exynos5x_clk_regs[] __initconst = {
        GATE_BUS_CPU,
        GATE_SCLK_CPU,
        CLKOUT_CMU_CPU,
+       APLL_CON0,
+       KPLL_CON0,
        CPLL_CON0,
        DPLL_CON0,
        EPLL_CON0,