提交 7843fb44 编写于 作者: X Xu Qiang 提交者: Zhang Zekun

mm/sharepool: Delete SPG_FLAG_NON_DVPP.

hulk inclusion
category: other
bugzilla: https://gitee.com/openeuler/kernel/issues/I6GI0X

----------------------------------------------

SPG_FLAG_NON_DVPP is no longer used in downstream systems.
Signed-off-by: NXu Qiang <xuqiang36@huawei.com>
上级 d4ac07a0
......@@ -50,8 +50,6 @@
#define SPG_ID_LOCAL_MIN 200001
#define SPG_ID_LOCAL_MAX 299999
#define SPG_FLAG_NON_DVPP (1 << 0)
#define MAX_DEVID 8 /* the max num of Da-vinci devices */
extern struct static_key_false share_pool_enabled_key;
......
......@@ -452,7 +452,7 @@ static int sp_mapping_group_setup(struct mm_struct *mm, struct sp_group *spg)
local_dvpp_mapping = mm->sp_group_master->local->mapping[SP_MAPPING_DVPP];
spg_dvpp_mapping = spg->mapping[SP_MAPPING_DVPP];
if (!list_empty(&spg->procs) && !(spg->flag & SPG_FLAG_NON_DVPP)) {
if (!list_empty(&spg->procs)) {
/*
* Don't return an error when the mappings' address range conflict.
* As long as the mapping is unused, we can drop the empty mapping.
......@@ -476,9 +476,8 @@ static int sp_mapping_group_setup(struct mm_struct *mm, struct sp_group *spg)
return -EINVAL;
}
} else {
if (!(spg->flag & SPG_FLAG_NON_DVPP))
/* the mapping of local group is always set */
sp_mapping_attach(spg, local_dvpp_mapping);
/* the mapping of local group is always set */
sp_mapping_attach(spg, local_dvpp_mapping);
if (!spg->mapping[SP_MAPPING_NORMAL])
sp_mapping_attach(spg, sp_mapping_normal);
if (!spg->mapping[SP_MAPPING_RO])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部