diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2009-08-17 16:28:39 +0200 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-08-19 08:09:53 +0200 |
commit | 5fd9cbad3a4ae82c83c55b9c621d156c326724ef (patch) | |
tree | 1a0868a3bd2751fa861c083aeb3ac27f3f695694 /include/drm/ttm/ttm_module.h | |
parent | drm/ttm: Add a virtual ttm sysfs device. (diff) | |
download | linux-5fd9cbad3a4ae82c83c55b9c621d156c326724ef.tar.xz linux-5fd9cbad3a4ae82c83c55b9c621d156c326724ef.zip |
drm/ttm: Memory accounting rework.
Use inclusive zones to simplify accounting and its sysfs representation.
Use DMA32 accounting where applicable.
Add a sysfs interface to make the heuristically determined limits
readable and configurable.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'include/drm/ttm/ttm_module.h')
-rw-r--r-- | include/drm/ttm/ttm_module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_module.h b/include/drm/ttm/ttm_module.h index 889a4c7958ae..0a72ac7c7e58 100644 --- a/include/drm/ttm/ttm_module.h +++ b/include/drm/ttm/ttm_module.h @@ -32,6 +32,7 @@ #define _TTM_MODULE_H_ #include <linux/kernel.h> +struct kobject; #define TTM_PFX "[TTM]" @@ -54,5 +55,6 @@ extern void ttm_global_init(void); extern void ttm_global_release(void); extern int ttm_global_item_ref(struct ttm_global_reference *ref); extern void ttm_global_item_unref(struct ttm_global_reference *ref); +extern struct kobject *ttm_get_kobj(void); #endif /* _TTM_MODULE_H_ */ |