]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
blackfin: restore L1 base address and length
authorBarry Song <barry.song@analog.com>
Tue, 29 Jun 2010 08:55:29 +0000 (08:55 +0000)
committerBob Liu <lliubbo@gmail.com>
Wed, 21 Mar 2012 03:00:06 +0000 (11:00 +0800)
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>
arch/blackfin/include/asm/mmu_context.h

index 3828c70e7a2ecb2e7ef0651a102de174f8c3ca49..15b16d3e8de8aee1aa906c62529df358ae074288 100644 (file)
@@ -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