Skip to content

Commit

Permalink
ARM: tegra: Disable cpuidle if PSCI is available
Browse files Browse the repository at this point in the history
This is only relevant on Tegra114 and Tegra124, because earlier Tegra
generations used Cortex-A9 without secure extensions.

Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Thierry Reding committed Aug 13, 2015
1 parent 592431b commit fc0cf17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/arm/mach-tegra/cpuidle-tegra114.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/cpuidle.h>
#include <asm/smp_plat.h>
#include <asm/suspend.h>
#include <asm/psci.h>

#include "pm.h"
#include "sleep.h"
Expand Down Expand Up @@ -84,5 +85,8 @@ static struct cpuidle_driver tegra_idle_driver = {

int __init tegra114_cpuidle_init(void)
{
return cpuidle_register(&tegra_idle_driver, NULL);
if (!psci_smp_available())
return cpuidle_register(&tegra_idle_driver, NULL);

return 0;
}

0 comments on commit fc0cf17

Please sign in to comment.