summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include
diff options
context:
space:
mode:
authorBarry Song <barry.song@analog.com>2010-06-29 10:55:29 +0200
committerBob Liu <lliubbo@gmail.com>2012-03-21 04:00:06 +0100
commitedd8a97e6e89ee2edc86e21db6253a73741f3c72 (patch)
tree24f73aca78244aecb7931e44d32fa04be2e7b33c /arch/blackfin/include
parentblackfin: timer: refine bfin simple timer driver (diff)
downloadlinux-edd8a97e6e89ee2edc86e21db6253a73741f3c72.tar.xz
linux-edd8a97e6e89ee2edc86e21db6253a73741f3c72.zip
blackfin: restore L1 base address and length
Restore L1 base address and length to 0 after free else the value will be wrong. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include')
-rw-r--r--arch/blackfin/include/asm/mmu_context.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/mmu_context.h b/arch/blackfin/include/asm/mmu_context.h
index 3828c70e7a2e..15b16d3e8de8 100644
--- a/arch/blackfin/include/asm/mmu_context.h
+++ b/arch/blackfin/include/asm/mmu_context.h
@@ -30,8 +30,11 @@ extern void *l1sram_alloc_max(void*);
static inline void free_l1stack(void)
{
nr_l1stack_tasks--;
- if (nr_l1stack_tasks == 0)
+ if (nr_l1stack_tasks == 0) {
l1sram_free(l1_stack_base);
+ l1_stack_base = NULL;
+ l1_stack_len = 0;
+ }
}
static inline unsigned long