Skip to content

Commit 03dae7c

Browse files
amlutoairlied
authored andcommitted
drm: Remove mtrr_add and mtrr_del fallback hack for non-MTRR systems
There are no users left in drivers/gpu. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Andy Lutomirski <luto@amacapital.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 63e28a7 commit 03dae7c

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

‎include/drm/drmP.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,13 @@
5555
#include <linux/mm.h>
5656
#include <linux/cdev.h>
5757
#include <linux/mutex.h>
58+
#include <linux/io.h>
5859
#include <linux/slab.h>
5960
#if defined(__alpha__) || defined(__powerpc__)
6061
#include <asm/pgtable.h> /* For pte_wrprotect */
6162
#endif
62-
#include <asm/io.h>
6363
#include <asm/mman.h>
6464
#include <asm/uaccess.h>
65-
#ifdef CONFIG_MTRR
66-
#include <asm/mtrr.h>
67-
#endif
6865
#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE)
6966
#include <linux/types.h>
7067
#include <linux/agp_backend.h>

‎include/drm/drm_os_linux.h‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,6 @@ struct no_agp_kern {
6565
#define DRM_AGP_KERN struct no_agp_kern
6666
#endif
6767

68-
#if !(__OS_HAS_MTRR)
69-
static __inline__ int mtrr_add(unsigned long base, unsigned long size,
70-
unsigned int type, char increment)
71-
{
72-
return -ENODEV;
73-
}
74-
75-
static __inline__ int mtrr_del(int reg, unsigned long base, unsigned long size)
76-
{
77-
return -ENODEV;
78-
}
79-
80-
#define MTRR_TYPE_WRCOMB 1
81-
82-
#endif
83-
8468
/** Other copying of data to kernel space */
8569
#define DRM_COPY_FROM_USER(arg1, arg2, arg3) \
8670
copy_from_user(arg1, arg2, arg3)

0 commit comments

Comments
 (0)