aboutsummaryrefslogtreecommitdiff
path: root/computer.c
diff options
context:
space:
mode:
Diffstat (limited to 'computer.c')
-rw-r--r--computer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/computer.c b/computer.c
index 462b7305..46c25b38 100644
--- a/computer.c
+++ b/computer.c
@@ -275,6 +275,18 @@ MemoryInfo *memory_get_info(void)
else if (!strncmp(buf, "system type", 11)) \
get_str_val(ci->machine)
#endif
+#ifdef ARCH_IA64
+#define PARSE_PROC_CPU() \
+ if(!strncmp(buf, "BogoMIPS", 8)) \
+ get_int_val(ci->bogomips) \
+ else if(!strncmp(buf, "vendor", 6)) \
+ get_str_val(ci->machine) \
+ else if(!strncmp(buf, "family", 6)) \
+ get_str_val(ci->processor) \
+ else if(!strncmp(buf, "cpu MHz", 7)) \
+ get_int_val(ci->frequency)
+#endif
+
#ifndef PARSE_PROC_CPU
#error PARSE_PROC_CPU not defined! Maybe your arch is not supported yet;