summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkasivajhula <tkasivajhula@nvidia.com>2010-02-05 12:36:45 -0800
committertkasivajhula <tkasivajhula@nvidia.com>2010-02-05 12:36:45 -0800
commit445c49e7b4946dda7745e3a149c6ef4e4ff830b1 (patch)
tree1abf26eca9c136b69826aea6565ffd509f70fa71
parenteac3c8be27c6ebafa25995b0158d793fea3e2b85 (diff)
tegra power: Fix a possible SMP race condition in LP3
It is possible that one cpu will populate the flowctrl structure while the other is waiting in a WFI. This change addresses this race condition. Change-Id: Ie4a37daa445d4546e02f748928870485d2f5f26b
-rw-r--r--arch/arm/mach-tegra/idle-t2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/idle-t2.c b/arch/arm/mach-tegra/idle-t2.c
index 134b477937f7..5b5dad442911 100644
--- a/arch/arm/mach-tegra/idle-t2.c
+++ b/arch/arm/mach-tegra/idle-t2.c
@@ -270,7 +270,7 @@ void cpu_ap20_do_idle(void)
// Wait for any interrupt
__asm__ volatile ("wfi");
- if (likely(s_pFlowCtrl))
+ if (addr)
{
/*
* Signal "stats monitor" to stop counting the idle cycles.