From: Michael Tremer Date: Fri, 20 Mar 2015 12:48:50 +0000 (+0100) Subject: fireinfo: Fix HT detection X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=574ce4e694c5abd60f48de1dce8eb6677ba60107;p=ipfire.org.git fireinfo: Fix HT detection Some processor signal the kernel that they do have Hyper-Threading when they actually have not. Those are excluded from the check now. --- diff --git a/webapp/backend/fireinfo.py b/webapp/backend/fireinfo.py index c6144088..9c5ba35f 100644 --- a/webapp/backend/fireinfo.py +++ b/webapp/backend/fireinfo.py @@ -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