- patches.arch/x86_mce_intel_decode_physical_address.patch:
[linux-flexiantxendom0-3.2.10.git] / fs / proc / mmu.c
index b00b766..8ae221d 100644 (file)
 #include <asm/pgtable.h>
 #include "internal.h"
 
-#ifdef CONFIG_KDB
-#include <linux/kdb.h>
-#endif
-
 void get_vmalloc_info(struct vmalloc_info *vmi)
 {
        struct vm_struct *vma;
        unsigned long free_area_size;
        unsigned long prev_end;
-#ifdef CONFIG_KDB
-       int get_lock = !KDB_IS_RUNNING();
-#else
-#define        get_lock 1
-#endif
-
 
        vmi->used = 0;
 
@@ -40,8 +30,7 @@ void get_vmalloc_info(struct vmalloc_info *vmi)
 
                prev_end = VMALLOC_START;
 
-               if (get_lock)
-                       read_lock(&vmlist_lock);
+               read_lock(&vmlist_lock);
 
                for (vma = vmlist; vma; vma = vma->next) {
                        unsigned long addr = (unsigned long) vma->addr;
@@ -66,7 +55,6 @@ void get_vmalloc_info(struct vmalloc_info *vmi)
                if (VMALLOC_END - prev_end > vmi->largest_chunk)
                        vmi->largest_chunk = VMALLOC_END - prev_end;
 
-               if (get_lock)
-                       read_unlock(&vmlist_lock);
+               read_unlock(&vmlist_lock);
        }
 }