diff options
author | Agney Lopes Roth Ferraz <agney@debian.org> | 2006-05-20 16:31:36 -0300 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:33 -0500 |
commit | 1a3b201e8e94d8c07b3e0a2ce1af22293a53b506 (patch) | |
tree | 5f413264789900af8df5979e145db392efaae0ab /computer.c | |
parent | e4f0aba9e74eea1d7d103e4e5a083f192971876e (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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; |