“f0222c7d860f09a61bec5e500539f28db0184b38”上不存在“drivers/media/v4l2-core/v4l2-common.c”
提交 2388a693 编写于 作者: B Bixuan Cui 提交者: Yang Yingliang

share_pool: move sysctl interface of share pool from kern_table to vm table

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI
CVE: NA

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

The share pool feature belongs to the memory subsystem. Therefore, the
sysctl interface is more suitable to be placed in the vm_table.
Signed-off-by: NBixuan Cui <cuibixuan@huawei.com>
Reviewed-by: NTang Yizhou <tangyizhou@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 c2d11a29
......@@ -1268,28 +1268,6 @@ static struct ctl_table kern_table[] = {
.extra2 = &three,
},
#endif
#ifdef CONFIG_ASCEND_SHARE_POOL
{
/* 0: disable, 1: enable */
.procname = "share_pool_hugepage_enable",
.data = &sysctl_share_pool_hugepage_enable,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra2 = &one,
},
{
/* 0: map_unlock, 1: map_lock */
.procname = "share_pool_map_lock_enable",
.data = &sysctl_share_pool_map_lock_enable,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra2 = &one,
},
#endif
{ }
};
......@@ -1801,6 +1779,26 @@ static struct ctl_table vm_table[] = {
.extra1 = &zero,
.extra2 = &one,
},
{
/* 0: disable, 1: enable */
.procname = "share_pool_hugepage_enable",
.data = &sysctl_share_pool_hugepage_enable,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra2 = &one,
},
{
/* 0: map_unlock, 1: map_lock */
.procname = "share_pool_map_lock_enable",
.data = &sysctl_share_pool_map_lock_enable,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra2 = &one,
},
#endif
{ }
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册