提交 798f2efd 编写于 作者: L Lijun Fang 提交者: Xie XiuQi

configs: Delete CONFIG_ARCH_ASCEND for versatility code

ascend inclusion
category: feature
bugzilla: NA
CVE: NA

--------

Delete CONFIG_ARCH_ASCEND for versatility code
Signed-off-by: NLijun Fang <fanglijun3@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: NWenan Mao <maowenan@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 85a77b35
......@@ -372,7 +372,7 @@ struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
int huge_add_to_page_cache(struct page *page, struct address_space *mapping,
pgoff_t idx);
#ifdef CONFIG_ARCH_ASCEND
#ifdef CONFIG_ARM64
const struct hstate *hugetlb_get_hstate(void);
struct page *hugetlb_alloc_hugepage(int nid);
int hugetlb_insert_hugepage_pte(struct mm_struct *mm, unsigned long addr,
......
......@@ -685,11 +685,7 @@ bool icmp_global_allow(void);
extern int sysctl_icmp_msgs_per_sec;
extern int sysctl_icmp_msgs_burst;
#ifdef CONFIG_ARCH_ASCEND
extern int sysctl_icmp_timestamp_enable;
#else
#define sysctl_icmp_timestamp_enable 1
#endif
#ifdef CONFIG_PROC_FS
int ip_misc_proc_init(void);
......
......@@ -5123,8 +5123,7 @@ void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason)
}
}
#ifdef CONFIG_ARCH_ASCEND
#ifdef CONFIG_ARM64
const struct hstate *hugetlb_get_hstate(void)
{
return &default_hstate;
......@@ -5224,5 +5223,4 @@ int hugetlb_insert_hugepage_pte_by_pa(struct mm_struct *mm,
return 0;
}
EXPORT_SYMBOL_GPL(hugetlb_insert_hugepage_pte_by_pa);
#endif
......@@ -232,9 +232,8 @@ static inline void icmp_xmit_unlock(struct sock *sk)
int sysctl_icmp_msgs_per_sec __read_mostly = 1000;
int sysctl_icmp_msgs_burst __read_mostly = 50;
#ifdef CONFIG_ARCH_ASCEND
int sysctl_icmp_timestamp_enable __read_mostly;
#endif
int sysctl_icmp_timestamp_enable __read_mostly = 1;
static struct {
spinlock_t lock;
......
......@@ -545,7 +545,6 @@ static struct ctl_table ipv4_table[] = {
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
},
#ifdef CONFIG_ARCH_ASCEND
{
.procname = "icmp_timestamp_enable",
.data = &sysctl_icmp_timestamp_enable,
......@@ -554,7 +553,6 @@ static struct ctl_table ipv4_table[] = {
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
},
#endif
{
.procname = "udp_mem",
.data = &sysctl_udp_mem,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册