Mercurial > hg > nginx
comparison src/core/ngx_cpuinfo.c @ 1871:9afb84c7cc61
fix cache line size for Pentium 4
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 29 Jan 2008 06:58:47 +0000 |
parents | 39b7d7b33c91 |
children | 8e88522cb6da |
comparison
equal
deleted
inserted
replaced
1870:a62fb6c156c5 | 1871:9afb84c7cc61 |
---|---|
90 | 90 |
91 ngx_cpuid(1, cpu); | 91 ngx_cpuid(1, cpu); |
92 | 92 |
93 if (ngx_strcmp(vendor, "GenuineIntel") == 0) { | 93 if (ngx_strcmp(vendor, "GenuineIntel") == 0) { |
94 | 94 |
95 switch (cpu[0] & 0xf00) { | 95 switch ((cpu[0] & 0xf00) >> 8) { |
96 | 96 |
97 /* Pentium */ | 97 /* Pentium */ |
98 case 5: | 98 case 5: |
99 /* Pentium Pro, II, III */ | 99 /* Pentium Pro, II, III */ |
100 case 6: | 100 case 6: |