ANDROID: GKI: Export put_task_stack symbol
We need dump task->stack in kernel module for debug usage, call try_get_task_stack to lock task->stack, and try_get_task_stack/put_task_stack should call in pairs, but put_task_stack is not exported Bug: 192990535 Change-Id: Ifb2f3d16f93039bffeb3e822bc066e42e2d21d13 Signed-off-by: chunhui.li <chunhui.li@mediatek.com>
This commit is contained in:

committed by
Matthias Maennich

parent
288805c86a
commit
9c2958f454
@@ -443,6 +443,7 @@ void put_task_stack(struct task_struct *tsk)
|
|||||||
if (refcount_dec_and_test(&tsk->stack_refcount))
|
if (refcount_dec_and_test(&tsk->stack_refcount))
|
||||||
release_task_stack(tsk);
|
release_task_stack(tsk);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(put_task_stack);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void free_task(struct task_struct *tsk)
|
void free_task(struct task_struct *tsk)
|
||||||
|
Reference in New Issue
Block a user