]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/mm.h
x86: do not PSE on CONFIG_DEBUG_PAGEALLOC=y
[net-next-2.6.git] / include / linux / mm.h
index 3c22d971afa78576db7a96597fe518a33b07e985..1bba6789a50a39cd1139a7b0556df38fcd78624e 100644 (file)
@@ -1118,9 +1118,21 @@ static inline void vm_stat_account(struct mm_struct *mm,
 }
 #endif /* CONFIG_PROC_FS */
 
-#ifndef CONFIG_DEBUG_PAGEALLOC
+#ifdef CONFIG_DEBUG_PAGEALLOC
+extern int debug_pagealloc_enabled;
+
+extern void kernel_map_pages(struct page *page, int numpages, int enable);
+
+static inline void enable_debug_pagealloc(void)
+{
+       debug_pagealloc_enabled = 1;
+}
+#else
 static inline void
 kernel_map_pages(struct page *page, int numpages, int enable) {}
+static inline void enable_debug_pagealloc(void)
+{
+}
 #endif
 
 extern struct vm_area_struct *get_gate_vma(struct task_struct *tsk);