detect L2 cache line size for Intel Core

This commit is contained in:
Igor Sysoev 2008-01-29 07:06:18 +00:00
parent 442d1e63f2
commit 48b7b9bd0e

View File

@ -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;
/*