diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-08-18 16:51:56 +0200 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-08-19 16:10:34 +1000 |
commit | a987fcaa805fcb24ba885c2e29fd4fdb6816f08f (patch) | |
tree | 561b6dd8e002e2eb1a75132b1edbd303782dc2fb /include/drm/ttm/ttm_bo_api.h | |
parent | 5fd9cbad3a4ae82c83c55b9c621d156c326724ef (diff) | |
download | talos-obmc-linux-a987fcaa805fcb24ba885c2e29fd4fdb6816f08f.tar.gz talos-obmc-linux-a987fcaa805fcb24ba885c2e29fd4fdb6816f08f.zip |
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 'include/drm/ttm/ttm_bo_api.h')
-rw-r--r-- | include/drm/ttm/ttm_bo_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 99dc521aa1a9..491146170522 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h @@ -155,6 +155,7 @@ struct ttm_buffer_object { * Members constant at init. */ + struct ttm_bo_global *glob; struct ttm_bo_device *bdev; unsigned long buffer_start; enum ttm_bo_type type; |