Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371593
b: refs/heads/master
c: b5795c7
h: refs/heads/master
i:
  371591: 4d7b40f
v: v3
  • Loading branch information
Ben Skeggs committed Apr 26, 2013
1 parent 40f285c commit 9099a5f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 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: d395f1e4c500f2cc5a30e837c63382b6af5c1d84
refs/heads/master: b5795c77e51adef3d5986a23cd23e0e30df9a1f3
10 changes: 0 additions & 10 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,13 @@ nv04_instmem_alloc(struct nouveau_instmem *imem, struct nouveau_object *parent,
u32 size, u32 align, struct nouveau_object **pobject)
{
struct nouveau_object *engine = nv_object(imem);
struct nv04_instmem_priv *priv = (void *)(imem);
int ret;

ret = nouveau_object_ctor(parent, engine, &nv04_instobj_oclass,
(void *)(unsigned long)align, size, pobject);
if (ret)
return ret;

/* INSTMEM itself creates objects to reserve (and preserve across
* suspend/resume) various fixed data locations, each one of these
* takes a reference on INSTMEM itself, causing it to never be
* freed. We drop all the self-references here to avoid this.
*/
if (unlikely(!priv->created))
atomic_dec(&engine->refcount);

return 0;
}

Expand Down Expand Up @@ -154,7 +145,6 @@ nv04_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret)
return ret;

priv->created = true;
return 0;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

struct nv04_instmem_priv {
struct nouveau_instmem base;
bool created;

void __iomem *iomem;
struct nouveau_mm heap;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret)
return ret;

priv->created = true;
return 0;
}

Expand Down

0 comments on commit 9099a5f

Please sign in to comment.