diff options
author | Michal Suchanek <msuchanek@suse.de> | 2020-03-20 11:20:15 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-04-03 00:10:00 +1100 |
commit | 2910428106ebf23a9a2176cb751749edb2ce57e2 (patch) | |
tree | 70e884a3b91af6f0d4bc0b95d60fbee583355a33 /arch/powerpc/kernel/vdso.c | |
parent | d6c19bdee2ba3d9426d31cb82d036212c3b2fb47 (diff) | |
download | linux-stable-2910428106ebf23a9a2176cb751749edb2ce57e2.tar.gz linux-stable-2910428106ebf23a9a2176cb751749edb2ce57e2.tar.bz2 linux-stable-2910428106ebf23a9a2176cb751749edb2ce57e2.zip |
powerpc/perf: consolidate valid_user_sp -> invalid_user_sp
Merge the 32bit and 64bit version.
Halve the check constants on 32bit.
Use STACK_TOP since it is defined.
Passing is_64 is now redundant since is_32bit_task() is used to
determine which callchain variant should be used. Use STACK_TOP and
is_32bit_task() directly.
This removes a page from the valid 32bit area on 64bit:
#define TASK_SIZE_USER32 (0x0000000100000000UL - (1 * PAGE_SIZE))
#define STACK_TOP_USER32 TASK_SIZE_USER32
Change return value to bool. It is inverted by users anyway.
Change to invalid_user_sp to avoid inverting the return value twice.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/be8e40fc0737fb28ad08b198552dee7cac1c5ce2.1584699455.git.msuchanek@suse.de
Diffstat (limited to 'arch/powerpc/kernel/vdso.c')
0 files changed, 0 insertions, 0 deletions