mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: remove MIGRATE_ISOLATE check in hotpath
Several functions test MIGRATE_ISOLATE and some of those are hotpath but MIGRATE_ISOLATE is used only if we enable CONFIG_MEMORY_ISOLATION(ie, CMA, memory-hotplug and memory-failure) which are not common config option. So let's not add unnecessary overhead and code when we don't enable CONFIG_MEMORY_ISOLATION. Signed-off-by: Minchan Kim <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Acked-by: Michal Nazarewicz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c60514b631
commit
194159fbcc
5 changed files with 38 additions and 7 deletions
|
|
@ -628,7 +628,9 @@ static char * const migratetype_names[MIGRATE_TYPES] = {
|
|||
#ifdef CONFIG_CMA
|
||||
"CMA",
|
||||
#endif
|
||||
#ifdef CONFIG_MEMORY_ISOLATION
|
||||
"Isolate",
|
||||
#endif
|
||||
};
|
||||
|
||||
static void *frag_start(struct seq_file *m, loff_t *pos)
|
||||
|
|
|
|||
Loading…
Reference in a new issue