summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2006-02-22 15:23:46 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2006-02-22 15:23:46 +0000
commit36c4810d06cb33ce32212dc84921bbc485143e80 (patch)
tree3c802cce38904a302ee53455c288ef02d6c5d1d7
parent9cb6270ead9ffcb4298e9e97c21855d42432a864 (diff)
downloaddrakx-backup-do-not-use-36c4810d06cb33ce32212dc84921bbc485143e80.tar
drakx-backup-do-not-use-36c4810d06cb33ce32212dc84921bbc485143e80.tar.gz
drakx-backup-do-not-use-36c4810d06cb33ce32212dc84921bbc485143e80.tar.bz2
drakx-backup-do-not-use-36c4810d06cb33ce32212dc84921bbc485143e80.tar.xz
drakx-backup-do-not-use-36c4810d06cb33ce32212dc84921bbc485143e80.zip
Check the socket is populated during dmi smp detection. I know, the code is
no longer used, but let's make it as "don't get gb depressed for reading SMBIOS spec for nothing"
-rw-r--r--perl-install/c/smp-dmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/c/smp-dmi.c b/perl-install/c/smp-dmi.c
index 60a92b9d6..71c905925 100644
--- a/perl-install/c/smp-dmi.c
+++ b/perl-install/c/smp-dmi.c
@@ -229,7 +229,7 @@ static int processor(u8 *data) {
struct dmi_header *dm = (struct dmi_header *)data;
if((dm->type == 4) && /*"Central Processor"*/(data[5] == 3)) {
- if(/*Processor Manufacturer*/data[7] != 0)
+ if(/*Processor Manufacturer*/data[7] != 0 && /*Populated*/(data[0x18] & (1 << 6)))
return 1;
}
return 0;