diff options
-rw-r--r-- | arch/x86/kernel/vsmp_64.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/vsmp_64.c b/arch/x86/kernel/vsmp_64.c index a00961d42e75..eb25584c54c3 100644 --- a/arch/x86/kernel/vsmp_64.c +++ b/arch/x86/kernel/vsmp_64.c | |||
@@ -84,8 +84,10 @@ int is_vsmp_box(void) | |||
84 | return vsmp; | 84 | return vsmp; |
85 | 85 | ||
86 | /* Check if we are running on a ScaleMP vSMP box */ | 86 | /* Check if we are running on a ScaleMP vSMP box */ |
87 | if (read_pci_config(0, 0x1f, 0, PCI_VENDOR_ID) == | 87 | if ((read_pci_config_16(0, 0x1f, 0, PCI_VENDOR_ID) == |
88 | (PCI_VENDOR_ID_SCALEMP || (PCI_DEVICE_ID_SCALEMP_VSMP_CTL << 16))) | 88 | PCI_VENDOR_ID_SCALEMP) && |
89 | (read_pci_config_16(0, 0x1f, 0, PCI_DEVICE_ID) == | ||
90 | PCI_DEVICE_ID_SCALEMP_VSMP_CTL)) | ||
89 | vsmp = 1; | 91 | vsmp = 1; |
90 | 92 | ||
91 | return vsmp; | 93 | return vsmp; |