Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
b5795c77
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b5795c77
编写于
4月 24, 2013
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nv04-nv40/instmem: remove parent deref hack
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
d395f1e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
12 deletion
+0
-12
drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.c
drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.c
+0
-10
drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.h
drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.h
+0
-1
drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c
drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c
+0
-1
未找到文件。
drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.c
浏览文件 @
b5795c77
...
...
@@ -93,7 +93,6 @@ 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
,
...
...
@@ -101,14 +100,6 @@ nv04_instmem_alloc(struct nouveau_instmem *imem, struct nouveau_object *parent,
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
;
}
...
...
@@ -154,7 +145,6 @@ nv04_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
priv
->
created
=
true
;
return
0
;
}
...
...
drivers/gpu/drm/nouveau/core/subdev/instmem/nv04.h
浏览文件 @
b5795c77
...
...
@@ -9,7 +9,6 @@
struct
nv04_instmem_priv
{
struct
nouveau_instmem
base
;
bool
created
;
void
__iomem
*
iomem
;
struct
nouveau_mm
heap
;
...
...
drivers/gpu/drm/nouveau/core/subdev/instmem/nv40.c
浏览文件 @
b5795c77
...
...
@@ -106,7 +106,6 @@ nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if
(
ret
)
return
ret
;
priv
->
created
=
true
;
return
0
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录