mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
detect L2 cache line size for Intel Core
This commit is contained in:
parent
442d1e63f2
commit
48b7b9bd0e
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue