mm/memory_hotplug: MEMHP_MERGE_RESOURCE to specify merging of System RAM resources
[sfrench/cifs-2.6.git] / include / linux / memory_hotplug.h
index 33eb80fdba22ffcf02978008552b7eb8af26c5fe..d65c6fdc5cfc39506cdf379e134ae3c168b2dcb8 100644 (file)
@@ -62,6 +62,13 @@ typedef int __bitwise mhp_t;
 
 /* No special request */
 #define MHP_NONE               ((__force mhp_t)0)
+/*
+ * Allow merging of the added System RAM resource with adjacent,
+ * mergeable resources. After a successful call to add_memory_resource()
+ * with this flag set, the resource pointer must no longer be used as it
+ * might be stale, or the resource might have changed.
+ */
+#define MEMHP_MERGE_RESOURCE   ((__force mhp_t)BIT(0))
 
 /*
  * Extended parameters for memory hotplug: