aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_memory.c
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2010-04-01 12:45:03 +0000
committerDave Airlie <airlied@redhat.com>2010-04-06 11:36:18 +1000
commitc96af79e3463d5d3f865625baa8bb8aa4c0944a0 (patch)
treed3ed3dd9a4a9e8beda500f51213bd0c7e5c28884 /drivers/gpu/drm/ttm/ttm_memory.c
parent975efdb1bf925ad48d4e3fe5339a85f12601e10d (diff)
downloadkernel_samsung_smdk4412-c96af79e3463d5d3f865625baa8bb8aa4c0944a0.zip
kernel_samsung_smdk4412-c96af79e3463d5d3f865625baa8bb8aa4c0944a0.tar.gz
kernel_samsung_smdk4412-c96af79e3463d5d3f865625baa8bb8aa4c0944a0.tar.bz2
drm/ttm: Add sysfs interface to control pool allocator.
Sysfs interface allows user to configure pool allocator functionality and change limits for the size of pool. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_memory.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c
index daff8a8..5e3f177 100644
--- a/drivers/gpu/drm/ttm/ttm_memory.c
+++ b/drivers/gpu/drm/ttm/ttm_memory.c
@@ -393,7 +393,7 @@ int ttm_mem_global_init(struct ttm_mem_global *glob)
"Zone %7s: Available graphics memory: %llu kiB.\n",
zone->name, (unsigned long long) zone->max_mem >> 10);
}
- ttm_page_alloc_init(glob->zone_kernel->max_mem/(2*PAGE_SIZE));
+ ttm_page_alloc_init(glob, glob->zone_kernel->max_mem/(2*PAGE_SIZE));
return 0;
out_no_zone:
ttm_mem_global_release(glob);