Ticket #4733: haiku_ticket4733.diff

File haiku_ticket4733.diff, 981 bytes (added by v, 15 years ago)

patch adds Core based Celeron identification

  • headers/private/shared/cpu_type.h

     
    176176        case B_CPU_INTEL_ATOM:
    177177            return "Atom";
    178178        case B_CPU_INTEL_PENTIUM_CORE:
     179            get_cpuid_model_string(cpuidName);
     180            if (strcasestr(cpuidName, "Celeron") != NULL)
     181                return "Core Celeron";
    179182            return "Core";
    180183        case B_CPU_INTEL_PENTIUM_CORE_2:
    181184            get_cpuid_model_string(cpuidName);
     185            if (strcasestr(cpuidName, "Celeron") != NULL)
     186                return "Core 2 Celeron";
    182187            if (strcasestr(cpuidName, "Xeon") != NULL)
    183188                return "Core 2 Xeon";
    184189            return "Core 2";
    185190        case B_CPU_INTEL_PENTIUM_CORE_2_45_NM:
    186191            get_cpuid_model_string(cpuidName);
     192            if (strcasestr(cpuidName, "Celeron") != NULL)
     193                return "Core 2 Celeron";
    187194            if (strcasestr(cpuidName, "Duo") != NULL
    188195                || strcasestr(cpuidName, "Quad") != NULL) {
    189196                return "Core 2";