Re: [PATCH] ttm: Make parts of a struct ttm_bo_device global.

2009-08-20 Thread Thomas Hellström
Dave Airlie wrote: On Wed, Aug 19, 2009 at 12:51 AM, Thomas Hellstromthellst...@vmware.com wrote: 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

Re: [PATCH] ttm: Make parts of a struct ttm_bo_device global.

2009-08-19 Thread Dave Airlie
On Wed, Aug 19, 2009 at 12:51 AM, Thomas Hellstromthellst...@vmware.com wrote: 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

Re: [PATCH] ttm: Make parts of a struct ttm_bo_device global.

2009-08-19 Thread Dave Airlie
On Thu, Aug 20, 2009 at 3:11 PM, Dave Airlieairl...@gmail.com wrote: On Wed, Aug 19, 2009 at 12:51 AM, Thomas Hellstromthellst...@vmware.com wrote: Common resources, like memory accounting and swap lists should be global and not per device. Introduce a struct ttm_bo_global to accomodate

[PATCH] ttm: Make parts of a struct ttm_bo_device global.

2009-08-18 Thread Thomas Hellstrom
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