summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/numa/hmat.c
diff options
context:
space:
mode:
authorLiu Shixin <liushixin2@huawei.com>2022-09-23 05:33:47 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-11-09 02:37:17 +0100
commit1eeaa4fd39b0b1b3e986f8eab6978e69b01e3c5e (patch)
tree5ff171ad093d466d33ae18d686b6adbd792e7085 /drivers/acpi/numa/hmat.c
parentmemory: remove unused register_hotmemory_notifier() (diff)
downloadlinux-1eeaa4fd39b0b1b3e986f8eab6978e69b01e3c5e.tar.xz
linux-1eeaa4fd39b0b1b3e986f8eab6978e69b01e3c5e.zip
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>
Diffstat (limited to 'drivers/acpi/numa/hmat.c')
-rw-r--r--drivers/acpi/numa/hmat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/numa/hmat.c b/drivers/acpi/numa/hmat.c
index 0ecefb604734..139e3b41653e 100644
--- a/drivers/acpi/numa/hmat.c
+++ b/drivers/acpi/numa/hmat.c
@@ -849,7 +849,7 @@ static __init int hmat_init(void)
hmat_register_targets();
/* Keep the table and structures if the notifier may use them */
- if (!hotplug_memory_notifier(hmat_callback, 2))
+ if (!hotplug_memory_notifier(hmat_callback, HMAT_CALLBACK_PRI))
return 0;
out_put:
hmat_free_structures();