Remove #if 0'd code
parent
e60eb69bc0
commit
2142b7840a
|
@ -438,31 +438,6 @@ static int DRM(_vma_info)(char *buf, char **start, off_t offset, int request,
|
|||
pgprot & _PAGE_GLOBAL ? 'g' : 'l' );
|
||||
#endif
|
||||
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;
|
||||
|
|
|
@ -438,31 +438,6 @@ static int DRM(_vma_info)(char *buf, char **start, off_t offset, int request,
|
|||
pgprot & _PAGE_GLOBAL ? 'g' : 'l' );
|
||||
#endif
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue