detect L2 cache line size for Intel Core
diff --git a/src/core/ngx_cpuinfo.c b/src/core/ngx_cpuinfo.c index 587f978..68eb094 100644 --- a/src/core/ngx_cpuinfo.c +++ b/src/core/ngx_cpuinfo.c
@@ -96,9 +96,18 @@ /* 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; /*