提交 fb746d0e 编写于 作者: J Johannes Weiner 提交者: Ingo Molnar

x86: optimise page fault entry, cleanup

tsk is already assigned to current, drop the redundant second
assignment.
Signed-off-by: NJohannes Weiner <hannes@cmpxchg.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 92181f19
...@@ -419,7 +419,6 @@ static noinline void pgtable_bad(struct pt_regs *regs, ...@@ -419,7 +419,6 @@ static noinline void pgtable_bad(struct pt_regs *regs,
printk(KERN_ALERT "%s: Corrupted page table at address %lx\n", printk(KERN_ALERT "%s: Corrupted page table at address %lx\n",
tsk->comm, address); tsk->comm, address);
dump_pagetable(address); dump_pagetable(address);
tsk = current;
tsk->thread.cr2 = address; tsk->thread.cr2 = address;
tsk->thread.trap_no = 14; tsk->thread.trap_no = 14;
tsk->thread.error_code = error_code; tsk->thread.error_code = error_code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册