x86, perf: Make copy_from_user_nmi() a library function
authorRobert Richter <robert.richter@amd.com>
Tue, 7 Jun 2011 09:49:55 +0000 (11:49 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Jul 2011 18:41:57 +0000 (20:41 +0200)
commit1ac2e6ca44e13a087eb7438d284f887097ee7e84
tree7ee4f00a67850e1e247610cefeae0ee7aa7b239a
parent9985c20f9e4aee6857c08246b273a3695a52b929
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>
arch/x86/include/asm/uaccess.h
arch/x86/kernel/cpu/perf_event.c
arch/x86/lib/Makefile
arch/x86/lib/usercopy.c [new file with mode: 0644]
arch/x86/oprofile/backtrace.c