diff options
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; |