diff options
-rw-r--r-- | linux-core/drm_proc.c | 25 | ||||
-rw-r--r-- | linux/drm_proc.h | 25 |
2 files changed, 0 insertions, 50 deletions
diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c index 14813722..9f4a7fae 100644 --- a/linux-core/drm_proc.c +++ b/linux-core/drm_proc.c @@ -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; diff --git a/linux/drm_proc.h b/linux/drm_proc.h index 14813722..9f4a7fae 100644 --- a/linux/drm_proc.h +++ b/linux/drm_proc.h @@ -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; |