Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Barry Song and committed by
Bob Liu
edd8a97e f7899f7c

+4 -1
+4 -1
arch/blackfin/include/asm/mmu_context.h
··· 30 30 static inline void free_l1stack(void) 31 31 { 32 32 nr_l1stack_tasks--; 33 - if (nr_l1stack_tasks == 0) 33 + if (nr_l1stack_tasks == 0) { 34 34 l1sram_free(l1_stack_base); 35 + l1_stack_base = NULL; 36 + l1_stack_len = 0; 37 + } 35 38 } 36 39 37 40 static inline unsigned long