mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
memory: move hotplug memory notifier priority to same file for easy sorting
The priority of hotplug memory callback is defined in a different file. And there are some callers using numbers directly. Collect them together into include/linux/memory.h for easy reading. This allows us to sort their priorities more intuitively without additional comments. Link: https://lkml.kernel.org/r/20220923033347.3935160-9-liushixin2@huawei.com Signed-off-by: Liu Shixin <liushixin2@huawei.com> Cc: Christoph Lameter <cl@linux.com> Cc: David Hildenbrand <david@redhat.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Waiman Long <longman@redhat.com> Cc: zefan li <lizefan.x@bytedance.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
eafd296e0c
commit
1eeaa4fd39
@@ -513,7 +513,7 @@ void __init page_ext_init(void)
|
||||
cond_resched();
|
||||
}
|
||||
}
|
||||
hotplug_memory_notifier(page_ext_callback, 0);
|
||||
hotplug_memory_notifier(page_ext_callback, DEFAULT_CALLBACK_PRI);
|
||||
pr_info("allocated %ld bytes of page_ext\n", total_usage);
|
||||
invoke_init_callbacks();
|
||||
return;
|
||||
|
Reference in New Issue
Block a user