]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: tegra: Use clk_m CPU on Tegra124 LP1 resume
authorStephen Warren <swarren@nvidia.com>
Thu, 3 Oct 2019 20:50:33 +0000 (14:50 -0600)
committerThierry Reding <treding@nvidia.com>
Wed, 8 Jan 2020 11:58:46 +0000 (12:58 +0100)
commitf69c8fd2e2ef57256a278abb4919a93fc059d109
tree6ef4689fff868dbe8db624ddf99d99ff5d6cbb5c
parent6e61c2bfbcbc95496a58c3c7083718ae5d41994f
ARM: tegra: Use clk_m CPU on Tegra124 LP1 resume

Configure the clock controller to set an alternate clock for the CPU
when it receives an IRQ during LP1 (system suspend). Specifically, use
clk_m (the crystal) rather than clk_s (a 32KHz clock). Such an IRQ will
be the LP1 wake event. This reduces the amount of time taken to resume
from LP1.

NVIDIA's downstream kernel executes this code on both Tegra30 and
Tegra124, so it appears OK to make this change unconditionally.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/sleep-tegra30.S