Skip to content
Commit 11539337 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Ingo Molnar
Browse files

x86/asm/64: Micro-optimize __clear_user() - Use immediate constants



Save two registers. Adding constants should be just as fast as adding registers.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180507213937.GB32406@avx2
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 67b8d5c7
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