summaryrefslogtreecommitdiff
path: root/linux/drm_memory_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drm_memory_debug.h')
-rw-r--r--linux/drm_memory_debug.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drm_memory_debug.h b/linux/drm_memory_debug.h
index 138de873..f4fd2425 100644
--- a/linux/drm_memory_debug.h
+++ b/linux/drm_memory_debug.h
@@ -32,7 +32,6 @@
#define __NO_VERSION__
#include <linux/config.h>
#include "drmP.h"
-#include <linux/wrapper.h>
typedef struct drm_mem_stats {
const char *name;
@@ -232,7 +231,7 @@ unsigned long DRM(alloc_pages)(int order, int area)
for (addr = address, sz = bytes;
sz > 0;
addr += PAGE_SIZE, sz -= PAGE_SIZE) {
- mem_map_reserve(virt_to_page(addr));
+ SetPageReserved(virt_to_page(addr));
}
return address;
@@ -253,7 +252,7 @@ void DRM(free_pages)(unsigned long address, int order, int area)
for (addr = address, sz = bytes;
sz > 0;
addr += PAGE_SIZE, sz -= PAGE_SIZE) {
- mem_map_unreserve(virt_to_page(addr));
+ ClearPageReserved(virt_to_page(addr));
}
free_pages(address, order);
}