Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163926
b: refs/heads/master
c: 7f5f4db
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Aug 20, 2009
1 parent f4abf31 commit 15e5974
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51c8b4071d84d46cc100baa5931ad06b2a823c95
refs/heads/master: 7f5f4db2d50ea1af8f160686d2e97bbfa5102b4f
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_ttm.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int radeon_ttm_global_init(struct radeon_device *rdev)
rdev->mman.mem_global_ref.object;
global_ref = &rdev->mman.bo_global_ref.ref;
global_ref->global_type = TTM_GLOBAL_TTM_BO;
global_ref->size = sizeof(struct ttm_mem_global);
global_ref->size = sizeof(struct ttm_bo_global);
global_ref->init = &ttm_bo_global_init;
global_ref->release = &ttm_bo_global_release;
r = ttm_global_item_ref(global_ref);
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,6 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj)
struct ttm_bo_global *glob =
container_of(kobj, struct ttm_bo_global, kobj);

printk(KERN_INFO TTM_PFX "Freeing bo global.\n");
ttm_mem_unregister_shrink(glob->mem_glob, &glob->shrink);
__free_page(glob->dummy_read_page);
kfree(glob);
Expand Down Expand Up @@ -1456,8 +1455,6 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
int ret = -EINVAL;

rwlock_init(&bdev->vm_lock);
spin_lock_init(&glob->lru_lock);

bdev->driver = driver;

memset(bdev->man, 0, sizeof(bdev->man));
Expand Down

0 comments on commit 15e5974

Please sign in to comment.