Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.14 /arch/i386/kernel/mtrr.c

Filename:/arch/i386/kernel/mtrr.c
Lines Added:7
Lines Deleted:16
Also changed in: (Previous) 2.4.14-pre8  2.4.14-pre7  2.4.14-pre6  2.4.14-pre5  2.4.14-pre4  2.4.14-pre3 
(Following) 2.4.15-pre2  2.4.15-pre3  2.4.15-pre4  2.4.15-pre5  2.4.15-pre6  2.4.15-pre7 

Location
[  2.4.14
  [  arch
    [  i386
      [  kernel
         o  mtrr.c

Patch

diff -u --recursive --new-file v2.4.13/linux/arch/i386/kernel/mtrr.c linux/arch/i386/kernel/mtrr.c
--- v2.4.13/linux/arch/i386/kernel/mtrr.c   Tue Oct 23 22:48:49 2001
+++ linux/arch/i386/kernel/mtrr.c   Thu Oct 25 14:05:52 2001
@@ -473,25 +473,16 @@
     unsigned long config, dummy;
     struct pci_dev *dev = NULL;
     
-   /* ServerWorks LE chipsets have problems with  write-combining 
-      Don't allow it and  leave room for other chipsets to be tagged */
+   /* ServerWorks LE chipsets have problems with write-combining 
+      Don't allow it and leave room for other chipsets to be tagged */
 
-    if ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) != NULL) {
-   switch(dev->vendor) {
-        case PCI_VENDOR_ID_SERVERWORKS:
-        switch (dev->device) {
-       case PCI_DEVICE_ID_SERVERWORKS_LE:
+   if ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8, NULL)) != NULL) {
+      if ((dev->vendor == PCI_VENDOR_ID_SERVERWORKS) &&
+         (dev->device == PCI_DEVICE_ID_SERVERWORKS_LE)) {
+      printk (KERN_INFO "mtrr: Serverworks LE detected. Write-combining disabled.\n");
       return 0;
-      break;
-       default:
-      break;
-       }
-       break;
-   default:
-       break;
+      }
    }
-    }
-
 
     switch ( mtrr_if )
     {


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.