]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit9c65b8463f41f3a9edef97e3109752159d4c6a4b
tree6ef4689fff868dbe8db624ddf99d99ff5d6cbb5c
parentcf94a7a06a7d7d4402d7313cf622ca2823bad43c
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