.. | .. |
---|
5 | 5 | */ |
---|
6 | 6 | #include <linux/kernel.h> |
---|
7 | 7 | #include <linux/types.h> |
---|
8 | | -#include <linux/memblock.h> |
---|
9 | 8 | #include <linux/log2.h> |
---|
10 | 9 | #include <linux/list.h> |
---|
11 | 10 | #include <linux/slab.h> |
---|
12 | 11 | #include <linux/mm.h> |
---|
13 | 12 | #include <linux/miscdevice.h> |
---|
14 | | -#include <linux/bootmem.h> |
---|
| 13 | +#include <linux/memblock.h> |
---|
15 | 14 | #include <linux/export.h> |
---|
16 | 15 | #include <linux/refcount.h> |
---|
17 | 16 | |
---|
.. | .. |
---|
171 | 170 | mdesc_size); |
---|
172 | 171 | alloc_size = PAGE_ALIGN(handle_size); |
---|
173 | 172 | |
---|
174 | | - paddr = memblock_alloc(alloc_size, PAGE_SIZE); |
---|
| 173 | + paddr = memblock_phys_alloc(alloc_size, PAGE_SIZE); |
---|
175 | 174 | |
---|
176 | 175 | hp = NULL; |
---|
177 | 176 | if (paddr) { |
---|
.. | .. |
---|
191 | 190 | |
---|
192 | 191 | alloc_size = PAGE_ALIGN(hp->handle_size); |
---|
193 | 192 | start = __pa(hp); |
---|
194 | | - free_bootmem_late(start, alloc_size); |
---|
| 193 | + memblock_free_late(start, alloc_size); |
---|
195 | 194 | } |
---|
196 | 195 | |
---|
197 | 196 | static struct mdesc_mem_ops memblock_mdesc_ops = { |
---|