]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commitdiff
Configure: set cache line size for more architectures.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 27 Mar 2024 15:36:51 +0000 (19:36 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 27 Mar 2024 15:36:51 +0000 (19:36 +0400)
Based on a patch by Piotr Sikora.

auto/os/conf

index d7f6e03824b2206c7f92108da723954073f2b2af..bb0ce4ef2b9cc4a9bd2761bd2f3d3d55f01a5648 100644 (file)
@@ -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