{{ _("Speed") }}
</td>
<td class="value">
- {{ profile.cpu.speed }} MHz (Bogomips: {{ profile.cpu.bogomips }})
+ {{ profile.cpu.speed }} MHz
+ {% if profile.cpu.speed != profile.cpu.bogomips %}
+ (Bogomips: {{ profile.cpu.bogomips }})
+ {% end %}
</td>
</tr>
- <tr>
- <td class="key">
- {{ _("Supported features") }}
- </td>
- <td class="value">
- <table class="cpufeatures">
- <tr>
- {% if profile.cpu.capable_64bit %}
- <td class="enabled">
- {% else %}
- <td class="disabled">
- {% end %}
- {{ _("64 bit") }}
- <td>
-
- {% if profile.cpu.capable_pae %}
- <td class="enabled">
- {% else %}
- <td class="disabled">
- {% end %}
- {{ _("PAE") }}
- <td>
+ {% if profile.cpu.vendor != "ARM" %}
+ <tr>
+ <td class="key">
+ {{ _("Supported features") }}
+ </td>
+ <td class="value">
+ <table class="cpufeatures">
+ <tr>
+ {% if profile.cpu.capable_64bit %}
+ <td class="enabled">
+ {% else %}
+ <td class="disabled">
+ {% end %}
+ {{ _("64 bit") }}
+ <td>
- {% if profile.cpu.capable_virt %}
- <td class="enabled">
- {% else %}
- <td class="disabled">
- {% end %}
- {{ _("VT-x/AMD-V") }}
- <td>
- </tr>
- </table>
- </td>
- </tr>
+ {% if profile.cpu.capable_pae %}
+ <td class="enabled">
+ {% else %}
+ <td class="disabled">
+ {% end %}
+ {{ _("PAE") }}
+ <td>
+
+ {% if profile.cpu.capable_virt %}
+ <td class="enabled">
+ {% else %}
+ <td class="disabled">
+ {% end %}
+ {{ _("VT-x/AMD-V") }}
+ <td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ {% end %}
<tr>
<td colspan="2">
<strong>{{ _("Memory") }}<strong>
# Qemu
(r"QEMU Virtual CPU version .*", r"QEMU CPU"),
+
+ # ARM
+ (r"Feroceon .*", r"ARM Feroceon"),
)
CPU_CORES = range(1, 9)
@property
def speed(self):
- return self._data.get("speed")
+ speed = self._data.get("speed")
+
+ # ARM boxes do not report speed but
+ # bogomips equals speed
+ if not speed:
+ return self.bogomips
+
+ return speed
@property
def friendly_speed(self):
@property
def friendly_string(self):
- return "%s @ %s" % (self.friendly_vendor, self.friendly_speed)
+ s = self.friendly_vendor
+
+ if self.speed:
+ s += " @ %s" % self.friendly_speed
+
+ return s
class ProfileHypervisor(ProfileDict):