diff options
author | tkasivajhula <tkasivajhula@nvidia.com> | 2010-02-05 12:36:45 -0800 |
---|---|---|
committer | tkasivajhula <tkasivajhula@nvidia.com> | 2010-02-05 12:36:45 -0800 |
commit | 445c49e7b4946dda7745e3a149c6ef4e4ff830b1 (patch) | |
tree | 1abf26eca9c136b69826aea6565ffd509f70fa71 | |
parent | eac3c8be27c6ebafa25995b0158d793fea3e2b85 (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.c | 2 |
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. |