Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
aa38e2e0
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
aa38e2e0
编写于
10月 25, 2011
作者:
D
Daniel Vetter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/sman: kill owner tracking interface functions
These are now unused. Signed-off-by:
N
Daniel Vetter
<
daniel.vetter@ffwll.ch
>
上级
c828e204
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
0 addition
and
57 deletion
+0
-57
drivers/gpu/drm/drm_sman.c
drivers/gpu/drm/drm_sman.c
+0
-38
include/drm/drm_sman.h
include/drm/drm_sman.h
+0
-19
未找到文件。
drivers/gpu/drm/drm_sman.c
浏览文件 @
aa38e2e0
...
...
@@ -279,27 +279,6 @@ static void drm_sman_remove_owner(struct drm_sman *sman,
kfree
(
owner_item
);
}
int
drm_sman_owner_clean
(
struct
drm_sman
*
sman
,
unsigned
long
owner
)
{
struct
drm_hash_item
*
hash_item
;
struct
drm_owner_item
*
owner_item
;
if
(
drm_ht_find_item
(
&
sman
->
owner_hash_tab
,
owner
,
&
hash_item
))
{
return
-
1
;
}
owner_item
=
drm_hash_entry
(
hash_item
,
struct
drm_owner_item
,
owner_hash
);
if
(
owner_item
->
mem_blocks
.
next
==
&
owner_item
->
mem_blocks
)
{
drm_sman_remove_owner
(
sman
,
owner_item
);
return
-
1
;
}
return
0
;
}
EXPORT_SYMBOL
(
drm_sman_owner_clean
);
static
void
drm_sman_do_owner_cleanup
(
struct
drm_sman
*
sman
,
struct
drm_owner_item
*
owner_item
)
{
...
...
@@ -312,23 +291,6 @@ static void drm_sman_do_owner_cleanup(struct drm_sman *sman,
drm_sman_remove_owner
(
sman
,
owner_item
);
}
void
drm_sman_owner_cleanup
(
struct
drm_sman
*
sman
,
unsigned
long
owner
)
{
struct
drm_hash_item
*
hash_item
;
struct
drm_owner_item
*
owner_item
;
if
(
drm_ht_find_item
(
&
sman
->
owner_hash_tab
,
owner
,
&
hash_item
))
{
return
;
}
owner_item
=
drm_hash_entry
(
hash_item
,
struct
drm_owner_item
,
owner_hash
);
drm_sman_do_owner_cleanup
(
sman
,
owner_item
);
}
EXPORT_SYMBOL
(
drm_sman_owner_cleanup
);
void
drm_sman_cleanup
(
struct
drm_sman
*
sman
)
{
struct
drm_owner_item
*
entry
,
*
next
;
...
...
include/drm/drm_sman.h
浏览文件 @
aa38e2e0
...
...
@@ -148,25 +148,6 @@ extern struct drm_memblock_item *drm_sman_alloc(struct drm_sman * sman,
extern
int
drm_sman_free_key
(
struct
drm_sman
*
sman
,
unsigned
int
key
);
extern
void
drm_sman_free
(
struct
drm_memblock_item
*
item
);
/*
* returns 1 iff there are no stale memory blocks associated with this owner.
* Typically called to determine if we need to idle the hardware and call
* drm_sman_owner_cleanup. If there are no stale memory blocks, it removes all
* resources associated with owner.
*/
extern
int
drm_sman_owner_clean
(
struct
drm_sman
*
sman
,
unsigned
long
owner
);
/*
* Frees all stale memory blocks associated with this owner. Note that this
* requires that the hardware is finished with all blocks, so the graphics engine
* should be idled before this call is made. This function also frees
* any resources associated with "owner" and should be called when owner
* is not going to be referenced anymore.
*/
extern
void
drm_sman_owner_cleanup
(
struct
drm_sman
*
sman
,
unsigned
long
owner
);
/*
* Frees all stale memory blocks associated with the memory manager.
* See idling above.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录