From 4a3be2c88ac03879a99aa0ac7c53350276b79c4b Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Tue, 28 Nov 2023 01:08:52 +0100 Subject: [PATCH] arm64: Align clear_page() to 16 bytes With automatic zeroing of pages upon allocation enabled, time spent in clear_page() is significant according to perf top. Since clear_page() is used in loops, align it to 16 bytes, which significantly reduces CPU time spent in clear_page() --- arch/arm64/lib/clear_page.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/lib/clear_page.S b/arch/arm64/lib/clear_page.S index 073acbf02..787228c6f 100644 --- a/arch/arm64/lib/clear_page.S +++ b/arch/arm64/lib/clear_page.S @@ -14,6 +14,7 @@ * Parameters: * x0 - dest */ + .p2align 4 SYM_FUNC_START(clear_page) mrs x1, dczid_el0 and w1, w1, #0xf