Merge tag 'cxl-for-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl
[sfrench/cifs-2.6.git] / include / linux / memory.h
index d8588256578ae86885eeb8792936a9a061d6ee42..c0afee5d126ef65d420770e1f8669842c499c8de 100644 (file)
@@ -96,8 +96,17 @@ int set_memory_block_size_order(unsigned int order);
 #define        MEM_GOING_ONLINE        (1<<3)
 #define        MEM_CANCEL_ONLINE       (1<<4)
 #define        MEM_CANCEL_OFFLINE      (1<<5)
+#define        MEM_PREPARE_ONLINE      (1<<6)
+#define        MEM_FINISH_OFFLINE      (1<<7)
 
 struct memory_notify {
+       /*
+        * The altmap_start_pfn and altmap_nr_pages fields are designated for
+        * specifying the altmap range and are exclusively intended for use in
+        * MEM_PREPARE_ONLINE/MEM_FINISH_OFFLINE notifiers.
+        */
+       unsigned long altmap_start_pfn;
+       unsigned long altmap_nr_pages;
        unsigned long start_pfn;
        unsigned long nr_pages;
        int status_change_nid_normal;