diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2010-07-23 07:31:08 +0530 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-07-23 08:21:57 -0700 |
commit | f540d7f5502d2bd07f368182e0efaab2c1a1af43 (patch) | |
tree | 80e1dbd2bf5628c1ce35a398a9dab5e711e61660 /arch | |
parent | 46e8bc5a6eeb1e3f895f42062a63d2e18a0033af (diff) |
[arm/tegra] dma: Interupt thread should be smp safe.
The interrupt thread handler have the static variable inside
a function. This is causing the corruption in the variale
when two processor execute the interrupt thread at same time
in smp mode.
Removing the qualifier static of a variable as this is not
required and also safe in smp mode.
Change-Id: I43fdab81a0a71c82e67eb4c12be0826f3bd8a927
Reviewed-on: http://git-master/r/4300
Reviewed-by: Gary King <gking@nvidia.com>
Tested-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/dma.c b/arch/arm/mach-tegra/dma.c index 349028896860..0cc97b707417 100644 --- a/arch/arm/mach-tegra/dma.c +++ b/arch/arm/mach-tegra/dma.c @@ -575,7 +575,7 @@ static void tegra_dma_init_hw(struct tegra_dma_channel *ch) static void handle_oneshot_dma(struct tegra_dma_channel *ch) { - static struct tegra_dma_req *req; + struct tegra_dma_req *req; spin_lock(&ch->lock); if (list_empty(&ch->list)) { @@ -616,7 +616,7 @@ static void handle_oneshot_dma(struct tegra_dma_channel *ch) static void handle_continuous_dma(struct tegra_dma_channel *ch) { - static struct tegra_dma_req *req; + struct tegra_dma_req *req; struct tegra_dma_req *next_req; spin_lock(&ch->lock); |