powerpc/perf: consolidate read_user_stack_32
authorMichal Suchanek <msuchanek@suse.de>
Fri, 20 Mar 2020 10:20:14 +0000 (11:20 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Apr 2020 13:09:59 +0000 (00:09 +1100)
commitd6c19bdee2ba3d9426d31cb82d036212c3b2fb47
treec97f0a4e0fc7072889d70cc24114481d4406d099
parent3dd4eb83a9c08ed6af482a5417323a6c8f4fc7a7
powerpc/perf: consolidate read_user_stack_32

There are two almost identical copies for 32bit and 64bit.

The function is used only in 32bit code which will be split out in next
patch so consolidate to one function.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0c21c919ed1296420199c78f7c3cfd29d3c7e909.1584699455.git.msuchanek@suse.de
arch/powerpc/perf/callchain.c