Skip to content

Commit

Permalink
arm64: Align clear_page() to 16 bytes
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
kerneltoast authored and Ristovski committed Nov 28, 2023
1 parent 66d6acd commit 4a3be2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/lib/clear_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Parameters:
* x0 - dest
*/
.p2align 4
SYM_FUNC_START(clear_page)
mrs x1, dczid_el0
and w1, w1, #0xf
Expand Down

0 comments on commit 4a3be2c

Please sign in to comment.