Configure: set cache line size for more architectures.

Based on a patch by Piotr Sikora.
This commit is contained in:
Sergey Kandaurov 2024-03-27 19:36:51 +04:00
parent 1bc19fe2db
commit 6b1bb998c9

View File

@ -115,6 +115,21 @@ case "$NGX_MACHINE" in
NGX_MACH_CACHE_LINE=64 NGX_MACH_CACHE_LINE=64
;; ;;
ppc64* | powerpc64*)
have=NGX_ALIGNMENT value=16 . auto/define
NGX_MACH_CACHE_LINE=128
;;
riscv64)
have=NGX_ALIGNMENT value=16 . auto/define
NGX_MACH_CACHE_LINE=64
;;
s390x)
have=NGX_ALIGNMENT value=16 . auto/define
NGX_MACH_CACHE_LINE=256
;;
*) *)
have=NGX_ALIGNMENT value=16 . auto/define have=NGX_ALIGNMENT value=16 . auto/define
NGX_MACH_CACHE_LINE=32 NGX_MACH_CACHE_LINE=32