diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/memory.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'include/linux/memory.h')
-rw-r--r-- | include/linux/memory.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h index 85582e1bcee9..935699b30b7c 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h | |||
@@ -20,9 +20,14 @@ | |||
20 | #include <linux/compiler.h> | 20 | #include <linux/compiler.h> |
21 | #include <linux/mutex.h> | 21 | #include <linux/mutex.h> |
22 | 22 | ||
23 | #define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS) | ||
24 | |||
23 | struct memory_block { | 25 | struct memory_block { |
24 | unsigned long phys_index; | 26 | unsigned long start_section_nr; |
27 | unsigned long end_section_nr; | ||
25 | unsigned long state; | 28 | unsigned long state; |
29 | int section_count; | ||
30 | |||
26 | /* | 31 | /* |
27 | * This serializes all state change requests. It isn't | 32 | * This serializes all state change requests. It isn't |
28 | * held during creation because the control files are | 33 | * held during creation because the control files are |
@@ -113,6 +118,8 @@ extern int memory_dev_init(void); | |||
113 | extern int remove_memory_block(unsigned long, struct mem_section *, int); | 118 | extern int remove_memory_block(unsigned long, struct mem_section *, int); |
114 | extern int memory_notify(unsigned long val, void *v); | 119 | extern int memory_notify(unsigned long val, void *v); |
115 | extern int memory_isolate_notify(unsigned long val, void *v); | 120 | extern int memory_isolate_notify(unsigned long val, void *v); |
121 | extern struct memory_block *find_memory_block_hinted(struct mem_section *, | ||
122 | struct memory_block *); | ||
116 | extern struct memory_block *find_memory_block(struct mem_section *); | 123 | extern struct memory_block *find_memory_block(struct mem_section *); |
117 | #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT) | 124 | #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT) |
118 | enum mem_add_context { BOOT, HOTPLUG }; | 125 | enum mem_add_context { BOOT, HOTPLUG }; |