Skip to content

Commit fc0cf17

Browse files
committed
ARM: tegra: Disable cpuidle if PSCI is available
This is only relevant on Tegra114 and Tegra124, because earlier Tegra generations used Cortex-A9 without secure extensions. Signed-off-by: Thierry Reding <[email protected]>
1 parent 592431b commit fc0cf17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

arch/arm/mach-tegra/cpuidle-tegra114.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <asm/cpuidle.h>
2525
#include <asm/smp_plat.h>
2626
#include <asm/suspend.h>
27+
#include <asm/psci.h>
2728

2829
#include "pm.h"
2930
#include "sleep.h"
@@ -84,5 +85,8 @@ static struct cpuidle_driver tegra_idle_driver = {
8485

8586
int __init tegra114_cpuidle_init(void)
8687
{
87-
return cpuidle_register(&tegra_idle_driver, NULL);
88+
if (!psci_smp_available())
89+
return cpuidle_register(&tegra_idle_driver, NULL);
90+
91+
return 0;
8892
}

0 commit comments

Comments
 (0)