Revert "Revert "ANDROID: vendor_hooks:vendor hook for mmput""
This reverts commit 501063ce66.
Reason for revert: The vendor hook is actually needed by a partner
Bug: 238821038
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I1c19add348792967975369a10ec9cb41fa268236
This commit is contained in:
parent
a43cd1f2bb
commit
f677efbea1
3 changed files with 8 additions and 1 deletions
|
|
@ -464,6 +464,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_alloc_si);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_si);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_si);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_free_pages);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_free_pages);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_shmem_page_flag);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_set_shmem_page_flag);
|
||||||
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmput);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_sched_pelt_multiplier);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_sched_pelt_multiplier);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_pages_reclaim_bypass);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_pages_reclaim_bypass);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_pages_failure_bypass);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_alloc_pages_failure_bypass);
|
||||||
|
|
|
||||||
|
|
@ -391,6 +391,10 @@ DECLARE_HOOK(android_vh_setscheduler_uclamp,
|
||||||
TP_PROTO(struct task_struct *tsk, int clamp_id, unsigned int value),
|
TP_PROTO(struct task_struct *tsk, int clamp_id, unsigned int value),
|
||||||
TP_ARGS(tsk, clamp_id, value));
|
TP_ARGS(tsk, clamp_id, value));
|
||||||
|
|
||||||
|
DECLARE_HOOK(android_vh_mmput,
|
||||||
|
TP_PROTO(void *unused),
|
||||||
|
TP_ARGS(unused));
|
||||||
|
|
||||||
DECLARE_HOOK(android_vh_sched_pelt_multiplier,
|
DECLARE_HOOK(android_vh_sched_pelt_multiplier,
|
||||||
TP_PROTO(unsigned int old, unsigned int cur, int *ret),
|
TP_PROTO(unsigned int old, unsigned int cur, int *ret),
|
||||||
TP_ARGS(old, cur, ret));
|
TP_ARGS(old, cur, ret));
|
||||||
|
|
|
||||||
|
|
@ -1150,8 +1150,10 @@ void mmput(struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
might_sleep();
|
might_sleep();
|
||||||
|
|
||||||
if (atomic_dec_and_test(&mm->mm_users))
|
if (atomic_dec_and_test(&mm->mm_users)) {
|
||||||
|
trace_android_vh_mmput(NULL);
|
||||||
__mmput(mm);
|
__mmput(mm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mmput);
|
EXPORT_SYMBOL_GPL(mmput);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue