diff options
author | Andy Lutomirski <luto@amacapital.net> | 2013-05-13 23:58:41 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-05-31 13:02:54 +1000 |
commit | 247d36d75128ba1f63702e0e6185d9a7a23ee5cb (patch) | |
tree | 947293f7e2ce7a9d65f5c7325a9cc4fab05dba32 /drivers/gpu/drm/savage/savage_drv.h | |
parent | d0d98eedee2178c803dd824bb09f52b0e2ac1811 (diff) | |
download | lwn-247d36d75128ba1f63702e0e6185d9a7a23ee5cb.tar.gz lwn-247d36d75128ba1f63702e0e6185d9a7a23ee5cb.zip |
drm (ast, cirrus, mgag200, nouveau, savage, vmwgfx): Remove drm_mtrr_{add, del}
This replaces drm_mtrr_{add,del} with arch_phys_wc_{add,del}. The
interface is simplified (because the base and size parameters to
drm_mtrr_del never did anything), and it no longer adds MTRRs on
systems that don't need them.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/savage/savage_drv.h')
-rw-r--r-- | drivers/gpu/drm/savage/savage_drv.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/savage/savage_drv.h b/drivers/gpu/drm/savage/savage_drv.h index df2aac6636f7..c05082a59f6f 100644 --- a/drivers/gpu/drm/savage/savage_drv.h +++ b/drivers/gpu/drm/savage/savage_drv.h @@ -160,10 +160,7 @@ typedef struct drm_savage_private { drm_local_map_t *cmd_dma; drm_local_map_t fake_dma; - struct { - int handle; - unsigned long base, size; - } mtrr[3]; + int mtrr_handles[3]; /* BCI and status-related stuff */ volatile uint32_t *status_ptr, *bci_ptr; |