Commit 04499b41 authored by Linus Torvalds's avatar Linus Torvalds

Remove old (disabled) debugging code.

parent 6e064a1a
...@@ -437,31 +437,6 @@ static int DRM(_vma_info)(char *buf, char **start, off_t offset, int request, ...@@ -437,31 +437,6 @@ static int DRM(_vma_info)(char *buf, char **start, off_t offset, int request,
pgprot & _PAGE_GLOBAL ? 'g' : 'l' ); pgprot & _PAGE_GLOBAL ? 'g' : 'l' );
#endif #endif
DRM_PROC_PRINT("\n"); DRM_PROC_PRINT("\n");
#if 0
for (i = vma->vm_start; i < vma->vm_end; i += PAGE_SIZE) {
pgd = pgd_offset(vma->vm_mm, i);
pmd = pmd_offset(pgd, i);
preempt_disable();
pte = pte_offset_map(pmd, i);
if (pte_present(*pte)) {
address = __pa(pte_page(*pte))
+ (i & (PAGE_SIZE-1));
DRM_PROC_PRINT(" 0x%08lx -> 0x%08lx"
" %c%c%c%c%c\n",
i,
address,
pte_read(*pte) ? 'r' : '-',
pte_write(*pte) ? 'w' : '-',
pte_exec(*pte) ? 'x' : '-',
pte_dirty(*pte) ? 'd' : '-',
pte_young(*pte) ? 'a' : '-' );
} else {
DRM_PROC_PRINT(" 0x%08lx\n", i);
}
pte_unmap(pte);
preempt_enable();
}
#endif
} }
if (len > request + offset) return request; if (len > request + offset) return request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment