summaryrefslogtreecommitdiffstats
path: root/lib/bitrev.c
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2020-03-20 11:20:15 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2020-04-02 15:10:00 +0200
commit2910428106ebf23a9a2176cb751749edb2ce57e2 (patch)
tree70e884a3b91af6f0d4bc0b95d60fbee583355a33 /lib/bitrev.c
parentpowerpc/perf: consolidate read_user_stack_32 (diff)
downloadlinux-2910428106ebf23a9a2176cb751749edb2ce57e2.tar.xz
linux-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 'lib/bitrev.c')
0 files changed, 0 insertions, 0 deletions