comparison auto/unix @ 7173:057adb2a9d23

Use sysconf to determine cacheline size at runtime. Determine cacheline size at runtime if supported using sysconf(_SC_LEVEL1_DCACHE_LINESIZE). In case not supported, fallback to compile time defaults.
author Debayan Ghosh <debayang.qdt@qualcommdatacenter.com>
date Mon, 11 Dec 2017 16:28:11 +0000
parents d3235149d17f
children 81fae70d6cb8
comparison
equal deleted inserted replaced
7172:e4c21e417277 7173:057adb2a9d23
962 ngx_feature_libs= 962 ngx_feature_libs=
963 ngx_feature_test="sysconf(_SC_NPROCESSORS_ONLN)" 963 ngx_feature_test="sysconf(_SC_NPROCESSORS_ONLN)"
964 . auto/feature 964 . auto/feature
965 965
966 966
967 ngx_feature="sysconf(_SC_LEVEL1_DCACHE_LINESIZE)"
968 ngx_feature_name="NGX_HAVE_LEVEL1_DCACHE_LINESIZE"
969 ngx_feature_run=no
970 ngx_feature_incs=
971 ngx_feature_path=
972 ngx_feature_libs=
973 ngx_feature_test="sysconf(_SC_LEVEL1_DCACHE_LINESIZE)"
974 . auto/feature
975
976
967 ngx_feature="openat(), fstatat()" 977 ngx_feature="openat(), fstatat()"
968 ngx_feature_name="NGX_HAVE_OPENAT" 978 ngx_feature_name="NGX_HAVE_OPENAT"
969 ngx_feature_run=no 979 ngx_feature_run=no
970 ngx_feature_incs="#include <sys/types.h> 980 ngx_feature_incs="#include <sys/types.h>
971 #include <sys/stat.h> 981 #include <sys/stat.h>