aboutsummaryrefslogtreecommitdiff
path: root/computer.c
diff options
context:
space:
mode:
authorAgney Lopes Roth Ferraz <agney@debian.org>2006-05-20 16:31:36 -0300
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:33 -0500
commit1a3b201e8e94d8c07b3e0a2ce1af22293a53b506 (patch)
tree5f413264789900af8df5979e145db392efaae0ab /computer.c
parente4f0aba9e74eea1d7d103e4e5a083f192971876e (diff)
Import Debian changes 0.3.7pre-4
hardinfo (0.3.7pre-4) unstable; urgency=low * added ia64 support. (Closes: #362175)
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;