]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Fix HT detection
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Mar 2015 12:48:50 +0000 (13:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Mar 2015 12:48:50 +0000 (13:48 +0100)
Some processor signal the kernel that they do have Hyper-Threading
when they actually have not. Those are excluded from the check now.

webapp/backend/fireinfo.py

index c6144088fea965915bfaff0c8483214f1b3ef1d2..9c5ba35f2321de3186c15a3249464c172e8084c4 100644 (file)
@@ -169,10 +169,18 @@ class Processor(Object):
                except KeyError:
                        return self.data.vendor
 
+       @property
+       def family(self):
+               return self.data.family
+
        @property
        def model(self):
                return self.data.model
 
+       @property
+       def stepping(self):
+               return self.data.stepping
+
        @property
        def model_string(self):
                s = self.data.model_string.split()
@@ -187,6 +195,9 @@ class Processor(Object):
                return flag in self.flags
 
        def uses_ht(self):
+               if self.family == 6 and self.model in (55, 77):
+                       return False
+
                return self.has_flag("ht")
 
        @property