提交 a54e678b 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[PATCH] x86-64: Remove redundant swiotlb=force handling

It's already handled in the main swiotlb code.
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 63f02fd7
......@@ -403,8 +403,6 @@ static inline int page_is_ram (unsigned long pagenr)
return 0;
}
extern int swiotlb_force;
static struct kcore_list kcore_mem, kcore_vmalloc, kcore_kernel, kcore_modules,
kcore_vsyscall;
......@@ -414,8 +412,6 @@ void __init mem_init(void)
int tmp;
#ifdef CONFIG_SWIOTLB
if (swiotlb_force)
swiotlb = 1;
if (!iommu_aperture &&
(end_pfn >= 0xffffffff>>PAGE_SHIFT || force_iommu))
swiotlb = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册