diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-10-25 15:55:31 (GMT) |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-21 23:33:20 (GMT) |
commit | 77ee8f3825054f23b17e9c8f728f061defd86cdc (patch) | |
tree | b4e9e7a68d77ae400adc06a3bf935b23666e9046 /drivers/gpu/drm/via/via_map.c | |
parent | 763240deb423c477b4d46c23e0b582099d4b8753 (diff) | |
download | linux-77ee8f3825054f23b17e9c8f728f061defd86cdc.tar.xz |
drm/via: track user->memblock mapping with idr
Massive indirection through a hashtable for a simple key->pointer
look-up actually just adds bloat.
v2: Drop the misleading comment noted by Chris Wilson.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/via/via_map.c')
-rw-r--r-- | drivers/gpu/drm/via/via_map.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/via_map.c b/drivers/gpu/drm/via/via_map.c index 6cca9a7..b09f659 100644 --- a/drivers/gpu/drm/via/via_map.c +++ b/drivers/gpu/drm/via/via_map.c @@ -104,6 +104,7 @@ int via_driver_load(struct drm_device *dev, unsigned long chipset) dev_priv->chipset = chipset; + idr_init(&dev->object_name_idr); ret = drm_sman_init(&dev_priv->sman, 2, 12, 8); if (ret) { kfree(dev_priv); |