From: Sergey Kandaurov Date: Wed, 27 Mar 2024 15:36:51 +0000 (+0400) Subject: Configure: set cache line size for more architectures. X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=6b1bb998c96278a56d767bc23520c385ab9f3038;p=nginx.git Configure: set cache line size for more architectures. Based on a patch by Piotr Sikora. --- 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