diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2021-07-19 00:27:05 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-08-11 11:51:39 +0200 |
commit | 9c93ccfc86f2cdeab8a34408759abad594e439b9 (patch) | |
tree | 35ffbc7de3594e3b3548e0733ea13887e578c6bd /arch/arm/mach-tegra/pm.c | |
parent | 158a9b47a491dd73e73a306e962d4c9a01270132 (diff) |
soc/tegra: pmc: Prevent racing with cpuilde driver
Both PMC and cpuidle drivers are probed at the same init level and
cpuidle depends on the PMC suspend mode. Add new default suspend mode
that indicates whether PMC driver has been probed and reset the mode in
a case of deferred probe of the PMC driver.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pm.c')
-rw-r--r-- | arch/arm/mach-tegra/pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pm.c b/arch/arm/mach-tegra/pm.c index 6452ebf68d40..b21f51b8e19e 100644 --- a/arch/arm/mach-tegra/pm.c +++ b/arch/arm/mach-tegra/pm.c @@ -403,7 +403,7 @@ static const struct platform_suspend_ops tegra_suspend_ops = { .enter = tegra_suspend_enter, }; -void __init tegra_init_suspend(void) +void tegra_pm_init_suspend(void) { enum tegra_suspend_mode mode = tegra_pmc_get_suspend_mode(); |