ANDROID: mm: Add vendor hook in rmqueue()
Add a vendor hook for costly order page counting and other vendor specific functions. Bug: 174521902 Bug: 172987241 Signed-off-by: Chiawei Wang <chiaweiwang@google.com> Change-Id: I89206727a462548cc3500b695d85c83ff003eec7
This commit is contained in:

committed by
Suren Baghdasaryan

parent
ea15862d66
commit
369de37804
@@ -70,6 +70,7 @@
|
||||
#include <linux/psi.h>
|
||||
#include <linux/padata.h>
|
||||
#include <linux/khugepaged.h>
|
||||
#include <trace/hooks/mm.h>
|
||||
|
||||
#include <asm/sections.h>
|
||||
#include <asm/tlbflush.h>
|
||||
@@ -3528,6 +3529,8 @@ struct page *rmqueue(struct zone *preferred_zone,
|
||||
|
||||
__count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order);
|
||||
zone_statistics(preferred_zone, zone);
|
||||
trace_android_vh_rmqueue(preferred_zone, zone, order,
|
||||
gfp_flags, alloc_flags, migratetype);
|
||||
local_irq_restore(flags);
|
||||
|
||||
out:
|
||||
|
Reference in New Issue
Block a user