Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpuidle: tegra: Remove do_idle firmware call

The do_idle firmware call is unused by all Tegra SoCs, hence remove it in
order to keep driver's code clean.

Tested-by: Anton Bambura <jenneron@protonmail.com> # TF701 T114
Tested-by: Matt Merhar <mattmerhar@protonmail.com> # Ouya T30
Tested-by: Peter Geis <pgwipeout@gmail.com> # Ouya T30
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210302095405.28453-2-digetx@gmail.com

authored by

Dmitry Osipenko and committed by
Daniel Lezcano
2dabed47 32c8c34d

+1 -12
+1 -12
drivers/cpuidle/cpuidle-tegra.c
··· 48 48 static atomic_t tegra_idle_barrier; 49 49 static atomic_t tegra_abort_flag; 50 50 51 - static inline bool tegra_cpuidle_using_firmware(void) 52 - { 53 - return firmware_ops->prepare_idle && firmware_ops->do_idle; 54 - } 55 - 56 51 static void tegra_cpuidle_report_cpus_state(void) 57 52 { 58 53 unsigned long cpu, lcpu, csr; ··· 132 137 133 138 err = call_firmware_op(prepare_idle, TF_PM_MODE_LP2_NOFLUSH_L2); 134 139 if (err && err != -ENOSYS) 135 - return err; 136 - 137 - err = call_firmware_op(do_idle, 0); 138 - if (err != -ENOSYS) 139 140 return err; 140 141 141 142 return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend); ··· 347 356 * is disabled. 348 357 */ 349 358 if (!IS_ENABLED(CONFIG_PM_SLEEP)) { 350 - if (!tegra_cpuidle_using_firmware()) 351 - tegra_cpuidle_disable_state(TEGRA_C7); 352 - 359 + tegra_cpuidle_disable_state(TEGRA_C7); 353 360 tegra_cpuidle_disable_state(TEGRA_CC6); 354 361 } 355 362