From 1a3b201e8e94d8c07b3e0a2ce1af22293a53b506 Mon Sep 17 00:00:00 2001 From: Agney Lopes Roth Ferraz Date: Sat, 20 May 2006 16:31:36 -0300 Subject: Import Debian changes 0.3.7pre-4 hardinfo (0.3.7pre-4) unstable; urgency=low * added ia64 support. (Closes: #362175) --- computer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'computer.c') 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; -- cgit v1.2.3