Skip to content

Commit 1dcbc50

Browse files
Yi-wei Zhaomosimchah
Yi-wei Zhao
authored andcommitted
arch/arm64: skip randomization within stack
It's a WA to make 32-bit dhrystone generate consistent scores during "sustained peformance mode" cts test. Change-Id: Ib146224ff0701899640cbaba649227aba85534a0 Signed-off-by: Yi-wei Zhao <[email protected]> Reviewed-on: https://gerrit.mot.com/902751 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver <[email protected]> Tested-by: Jira Key <[email protected]> Reviewed-by: Igor Kovalenko <[email protected]> Submit-Approved: Jira Key <[email protected]> Signed-off-by: ahmedradaideh <[email protected]>
1 parent f6a1bd4 commit 1dcbc50

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arm64/kernel/process.c

-2
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,6 @@ unsigned long get_wchan(struct task_struct *p)
464464

465465
unsigned long arch_align_stack(unsigned long sp)
466466
{
467-
if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space)
468-
sp -= get_random_int() & ~PAGE_MASK;
469467
return sp & ~0xf;
470468
}
471469

0 commit comments

Comments
 (0)