Patch by "v" to fix ticket #4733, there are Core and Core 2 Celerons. I
enhanced it to also say Core 2 Quad and Core 2 Duo again, instead of just Core 2. Thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33470 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -176,18 +176,25 @@ get_cpu_model_string(system_info *info)
|
|||||||
case B_CPU_INTEL_ATOM:
|
case B_CPU_INTEL_ATOM:
|
||||||
return "Atom";
|
return "Atom";
|
||||||
case B_CPU_INTEL_PENTIUM_CORE:
|
case B_CPU_INTEL_PENTIUM_CORE:
|
||||||
|
get_cpuid_model_string(cpuidName);
|
||||||
|
if (strcasestr(cpuidName, "Celeron") != NULL)
|
||||||
|
return "Core Celeron";
|
||||||
return "Core";
|
return "Core";
|
||||||
case B_CPU_INTEL_PENTIUM_CORE_2:
|
case B_CPU_INTEL_PENTIUM_CORE_2:
|
||||||
get_cpuid_model_string(cpuidName);
|
get_cpuid_model_string(cpuidName);
|
||||||
|
if (strcasestr(cpuidName, "Celeron") != NULL)
|
||||||
|
return "Core 2 Celeron";
|
||||||
if (strcasestr(cpuidName, "Xeon") != NULL)
|
if (strcasestr(cpuidName, "Xeon") != NULL)
|
||||||
return "Core 2 Xeon";
|
return "Core 2 Xeon";
|
||||||
return "Core 2";
|
return "Core 2";
|
||||||
case B_CPU_INTEL_PENTIUM_CORE_2_45_NM:
|
case B_CPU_INTEL_PENTIUM_CORE_2_45_NM:
|
||||||
get_cpuid_model_string(cpuidName);
|
get_cpuid_model_string(cpuidName);
|
||||||
if (strcasestr(cpuidName, "Duo") != NULL
|
if (strcasestr(cpuidName, "Celeron") != NULL)
|
||||||
|| strcasestr(cpuidName, "Quad") != NULL) {
|
return "Core 2 Celeron";
|
||||||
return "Core 2";
|
if (strcasestr(cpuidName, "Duo") != NULL)
|
||||||
}
|
return "Core 2 Duo";
|
||||||
|
if (strcasestr(cpuidName, "Quad") != NULL)
|
||||||
|
return "Core 2 Quad";
|
||||||
if (strcasestr(cpuidName, "Xeon") != NULL)
|
if (strcasestr(cpuidName, "Xeon") != NULL)
|
||||||
return "Core 2 Xeon";
|
return "Core 2 Xeon";
|
||||||
return "Core 2 Extreme";
|
return "Core 2 Extreme";
|
||||||
|
|||||||
Reference in New Issue
Block a user