x86, perf: Make copy_from_user_nmi() a library function
copy_from_user_nmi() is used in oprofile and perf. Moving it to other library functions like copy_from_user(). As this is x86 code for 32 and 64 bits, create a new file usercopy.c for unified code. Signed-off-by:Robert Richter <robert.richter@amd.com> Signed-off-by:
Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20110607172413.GJ20052@erda.amd.com Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- arch/x86/include/asm/uaccess.h 3 additions, 0 deletionsarch/x86/include/asm/uaccess.h
- arch/x86/kernel/cpu/perf_event.c 0 additions, 35 deletionsarch/x86/kernel/cpu/perf_event.c
- arch/x86/lib/Makefile 1 addition, 1 deletionarch/x86/lib/Makefile
- arch/x86/lib/usercopy.c 43 additions, 0 deletionsarch/x86/lib/usercopy.c
- arch/x86/oprofile/backtrace.c 1 addition, 38 deletionsarch/x86/oprofile/backtrace.c
Loading
Please register or sign in to comment