mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 10:20:51 +07:00
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>
This commit is contained in:
parent
f7899f7c1f
commit
edd8a97e6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user