diff options
| author | Andi Kleen <[email protected]> | 2013-08-16 21:17:19 +0000 |
|---|---|---|
| committer | H. Peter Anvin <[email protected]> | 2013-09-10 22:27:43 +0000 |
| commit | ff47ab4ff3cddfa7bc1b25b990e24abe2ae474ff (patch) | |
| tree | 9a41335f282ba7851abf625fb295369aaa6061d9 /drivers/pci/hotplug/ibmphp_hpc.c | |
| parent | Linux 3.11 (diff) | |
| download | kernel-ff47ab4ff3cddfa7bc1b25b990e24abe2ae474ff.tar.gz kernel-ff47ab4ff3cddfa7bc1b25b990e24abe2ae474ff.zip | |
x86: Add 1/2/4/8 byte optimization to 64bit __copy_{from,to}_user_inatomic
The 64bit __copy_{from,to}_user_inatomic always called
copy_from_user_generic, but skipped the special optimizations for 1/2/4/8
byte accesses.
This especially hurts the futex call, which accesses the 4 byte futex
user value with a complicated fast string operation in a function call,
instead of a single movl.
Use __copy_{from,to}_user for _inatomic instead to get the same
optimizations. The only problem was the might_fault() in those functions.
So move that to new wrapper and call __copy_{f,t}_user_nocheck()
from *_inatomic directly.
32bit already did this correctly by duplicating the code.
Signed-off-by: Andi Kleen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
0 files changed, 0 insertions, 0 deletions
