summaryrefslogtreecommitdiffhomepage
path: root/auto/os
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2024-03-27 19:36:51 +0400
committerSergey Kandaurov <pluknet@nginx.com>2024-03-27 19:36:51 +0400
commit6b1bb998c96278a56d767bc23520c385ab9f3038 (patch)
tree404bc7f4ca204a1374ad1d6d488ca952ffaab025 /auto/os
parent1bc19fe2db3afc7a72eb0a91e554aee9160e0d00 (diff)
downloadnginx-6b1bb998c96278a56d767bc23520c385ab9f3038.tar.gz
nginx-6b1bb998c96278a56d767bc23520c385ab9f3038.tar.bz2
Configure: set cache line size for more architectures.
Based on a patch by Piotr Sikora.
Diffstat (limited to 'auto/os')
-rw-r--r--auto/os/conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/auto/os/conf b/auto/os/conf
index d7f6e0382..bb0ce4ef2 100644
--- a/auto/os/conf
+++ b/auto/os/conf
@@ -115,6 +115,21 @@ case "$NGX_MACHINE" in
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
NGX_MACH_CACHE_LINE=32