ttm: Make parts of a struct ttm_bo_device global.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 18 Aug 2009 14:51:56 +0000 (16:51 +0200)
committerDave Airlie <airlied@linux.ie>
Wed, 19 Aug 2009 06:10:34 +0000 (16:10 +1000)
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>

No differences found