From 6b1bb998c96278a56d767bc23520c385ab9f3038 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Wed, 27 Mar 2024 19:36:51 +0400 Subject: [PATCH] Configure: set cache line size for more architectures. Based on a patch by Piotr Sikora. --- auto/os/conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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