aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/ngx_cpuinfo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/ngx_cpuinfo.c b/src/core/ngx_cpuinfo.c
index 587f97811..68eb094c9 100644
--- a/src/core/ngx_cpuinfo.c
+++ b/src/core/ngx_cpuinfo.c
@@ -96,9 +96,18 @@ ngx_cpuinfo(void)
/* Pentium */
case 5:
+ ngx_cacheline_size = 32;
+ break;
+
/* Pentium Pro, II, III */
case 6:
ngx_cacheline_size = 32;
+
+ if ((cpu[0] & 0xf0) >= 0xd0) {
+ /* Intel Core */
+ ngx_cacheline_size = 64;
+ }
+
break;
/*