Commit fb746d0e authored by Johannes Weiner's avatar Johannes Weiner Committed by Ingo Molnar

x86: optimise page fault entry, cleanup

tsk is already assigned to current, drop the redundant second
assignment.
Signed-off-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 92181f19
......@@ -419,7 +419,6 @@ static noinline void pgtable_bad(struct pt_regs *regs,
printk(KERN_ALERT "%s: Corrupted page table at address %lx\n",
tsk->comm, address);
dump_pagetable(address);
tsk = current;
tsk->thread.cr2 = address;
tsk->thread.trap_no = 14;
tsk->thread.error_code = error_code;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment