diff options
Diffstat (limited to 'perl-install/c/smp-dmi.c')
-rw-r--r-- | perl-install/c/smp-dmi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/perl-install/c/smp-dmi.c b/perl-install/c/smp-dmi.c index 518163c75..672bc2c35 100644 --- a/perl-install/c/smp-dmi.c +++ b/perl-install/c/smp-dmi.c @@ -159,8 +159,7 @@ static int dmi_table(int fd, u32 base, int len, int num) dm=(struct dmi_header *)data; if((dm->type == 4) && /*"Central Processor"*/(data[5] == 3)) { - if(/*Processor Manufacturer*/(data[7] != 0) && - (strncmp(dmi_processor_family(data[6]),"Unknown",7) != 0) && (data[6] != 0)) + if(/*Processor Manufacturer*/data[7] != 0) processor++; } @@ -174,11 +173,6 @@ static int dmi_table(int fd, u32 base, int len, int num) return processor; } -int main(int argc, char *argv[]) -{ - return intelDetectSMP(); -} - int intelDetectSMP(void) { unsigned char buf[20]; int fd=open("/dev/mem", O_RDONLY); @@ -215,5 +209,5 @@ int intelDetectSMP(void) { } } close(fd); - return processor; + return (processor > 1); } |