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
@@ -112,8 +112,13 @@ struct mem_section;
|
||||
* Priorities for the hotplug memory callback routines (stored in decreasing
|
||||
* order in the callback chain)
|
||||
*/
|
||||
#define SLAB_CALLBACK_PRI 1
|
||||
#define IPC_CALLBACK_PRI 10
|
||||
#define DEFAULT_CALLBACK_PRI 0
|
||||
#define SLAB_CALLBACK_PRI 1
|
||||
#define HMAT_CALLBACK_PRI 2
|
||||
#define MM_COMPUTE_BATCH_PRI 10
|
||||
#define CPUSET_CALLBACK_PRI 10
|
||||
#define MEMTIER_HOTPLUG_PRI 100
|
||||
#define KSM_CALLBACK_PRI 100
|
||||
|
||||
#ifndef CONFIG_MEMORY_HOTPLUG
|
||||
static inline void memory_dev_init(void)
|
||||
|
||||
Reference in New Issue
Block a user