mirror of
https://github.com/nginx/nginx.git
synced 2025-01-21 05:43:10 -06:00
detect L2 cache line size for Intel Core
This commit is contained in:
parent
442d1e63f2
commit
48b7b9bd0e
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user