diff options
author | Andy Lutomirski <luto@amacapital.net> | 2013-05-13 19:58:47 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-05-30 23:37:37 -0400 |
commit | 03dae7c567d24c49e826a033df45802ac9d1d6c8 (patch) | |
tree | d9eb736873638681e390e0648da9ea21442563da | |
parent | 63e28a7a5ffce59b645ca9cbcc01e1e8be56bd75 (diff) |
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>
-rw-r--r-- | include/drm/drmP.h | 5 | ||||
-rw-r--r-- | include/drm/drm_os_linux.h | 16 |
2 files changed, 1 insertions, 20 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 5a87655508fc..b06f5afe10ce 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -55,16 +55,13 @@ | |||
55 | #include <linux/mm.h> | 55 | #include <linux/mm.h> |
56 | #include <linux/cdev.h> | 56 | #include <linux/cdev.h> |
57 | #include <linux/mutex.h> | 57 | #include <linux/mutex.h> |
58 | #include <linux/io.h> | ||
58 | #include <linux/slab.h> | 59 | #include <linux/slab.h> |
59 | #if defined(__alpha__) || defined(__powerpc__) | 60 | #if defined(__alpha__) || defined(__powerpc__) |
60 | #include <asm/pgtable.h> /* For pte_wrprotect */ | 61 | #include <asm/pgtable.h> /* For pte_wrprotect */ |
61 | #endif | 62 | #endif |
62 | #include <asm/io.h> | ||
63 | #include <asm/mman.h> | 63 | #include <asm/mman.h> |
64 | #include <asm/uaccess.h> | 64 | #include <asm/uaccess.h> |
65 | #ifdef CONFIG_MTRR | ||
66 | #include <asm/mtrr.h> | ||
67 | #endif | ||
68 | #if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) | 65 | #if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) |
69 | #include <linux/types.h> | 66 | #include <linux/types.h> |
70 | #include <linux/agp_backend.h> | 67 | #include <linux/agp_backend.h> |
diff --git a/include/drm/drm_os_linux.h b/include/drm/drm_os_linux.h index 675ddf4b441f..815fafc6b4ad 100644 --- a/include/drm/drm_os_linux.h +++ b/include/drm/drm_os_linux.h | |||
@@ -65,22 +65,6 @@ struct no_agp_kern { | |||
65 | #define DRM_AGP_KERN struct no_agp_kern | 65 | #define DRM_AGP_KERN struct no_agp_kern |
66 | #endif | 66 | #endif |
67 | 67 | ||
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 | |||
84 | /** Other copying of data to kernel space */ | 68 | /** Other copying of data to kernel space */ |
85 | #define DRM_COPY_FROM_USER(arg1, arg2, arg3) \ | 69 | #define DRM_COPY_FROM_USER(arg1, arg2, arg3) \ |
86 | copy_from_user(arg1, arg2, arg3) | 70 | copy_from_user(arg1, arg2, arg3) |