aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Osipenko <[email protected]>2021-03-02 12:54:05 +0300
committerDaniel Lezcano <[email protected]>2021-04-08 19:54:14 +0200
commit2dabed47778958cca7880544c20e55984bf43d33 (patch)
tree7742138e957df05e5d42f997ba89f87fd1630758
parent32c8c34d8132b5fe8497c2538597445a0d65c29d (diff)
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 <[email protected]> # TF701 T114 Tested-by: Matt Merhar <[email protected]> # Ouya T30 Tested-by: Peter Geis <[email protected]> # Ouya T30 Signed-off-by: Dmitry Osipenko <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/cpuidle/cpuidle-tegra.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/cpuidle/cpuidle-tegra.c b/drivers/cpuidle/cpuidle-tegra.c
index 29c5e83500d3..508bd9f23792 100644
--- a/drivers/cpuidle/cpuidle-tegra.c
+++ b/drivers/cpuidle/cpuidle-tegra.c
@@ -48,11 +48,6 @@ enum tegra_state {
static atomic_t tegra_idle_barrier;
static atomic_t tegra_abort_flag;
-static inline bool tegra_cpuidle_using_firmware(void)
-{
- return firmware_ops->prepare_idle && firmware_ops->do_idle;
-}
-
static void tegra_cpuidle_report_cpus_state(void)
{
unsigned long cpu, lcpu, csr;
@@ -139,10 +134,6 @@ static int tegra_cpuidle_c7_enter(void)
if (err && err != -ENOSYS)
return err;
- err = call_firmware_op(do_idle, 0);
- if (err != -ENOSYS)
- return err;
-
return cpu_suspend(0, tegra30_pm_secondary_cpu_suspend);
}
@@ -356,9 +347,7 @@ static int tegra_cpuidle_probe(struct platform_device *pdev)
* is disabled.
*/
if (!IS_ENABLED(CONFIG_PM_SLEEP)) {
- if (!tegra_cpuidle_using_firmware())
- tegra_cpuidle_disable_state(TEGRA_C7);
-
+ tegra_cpuidle_disable_state(TEGRA_C7);
tegra_cpuidle_disable_state(TEGRA_CC6);
}