diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-08-18 10:51:56 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-08-19 02:10:34 -0400 |
commit | a987fcaa805fcb24ba885c2e29fd4fdb6816f08f (patch) | |
tree | 561b6dd8e002e2eb1a75132b1edbd303782dc2fb /drivers/gpu/drm/radeon/radeon_object.h | |
parent | 5fd9cbad3a4ae82c83c55b9c621d156c326724ef (diff) |
ttm: Make parts of a struct ttm_bo_device global.
Common resources, like memory accounting and swap lists should be
global and not per device. Introduce a struct ttm_bo_global to
accomodate this, and register it with sysfs. Add a small sysfs interface
to return the number of active buffer objects.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_object.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.h b/drivers/gpu/drm/radeon/radeon_object.h index 473e4775dc5a..10e8af6bb456 100644 --- a/drivers/gpu/drm/radeon/radeon_object.h +++ b/drivers/gpu/drm/radeon/radeon_object.h | |||
@@ -37,6 +37,7 @@ | |||
37 | * TTM. | 37 | * TTM. |
38 | */ | 38 | */ |
39 | struct radeon_mman { | 39 | struct radeon_mman { |
40 | struct ttm_bo_global_ref bo_global_ref; | ||
40 | struct ttm_global_reference mem_global_ref; | 41 | struct ttm_global_reference mem_global_ref; |
41 | bool mem_global_referenced; | 42 | bool mem_global_referenced; |
42 | struct ttm_bo_device bdev; | 43 | struct ttm_bo_device bdev; |