diff options
| author | Burt P <pburt0@gmail.com> | 2017-07-09 21:59:27 -0500 | 
|---|---|---|
| committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-12 19:38:41 -0700 | 
| commit | ac9072baaa41c5bb0879da73bb2603dbb018b3fc (patch) | |
| tree | ebd956ad18a452c92891914bd43ab3933cf789a8 /modules/devices | |
| parent | 3260e09b2ae4ee9eb80ff83f800d9b3bcff209e4 (diff) | |
parisc: fixes, add test
It really didn't work at all before.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
| -rw-r--r-- | modules/devices/parisc/processor.c | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/modules/devices/parisc/processor.c b/modules/devices/parisc/processor.c index b08baff5..23cc9ba0 100644 --- a/modules/devices/parisc/processor.c +++ b/modules/devices/parisc/processor.c @@ -32,7 +32,7 @@ gchar *byte_order_str() {  #endif  GSList * -processors_scan(void) +processor_scan(void)  {      Processor *processor;      FILE *cpuinfo; @@ -51,14 +51,12 @@ processors_scan(void)              tmp[1] = g_strstrip(tmp[1]);              get_str("cpu family", processor->model_name); -            get_str("cpu", processor->vendor_id);              get_float("cpu MHz", processor->cpu_mhz); +            get_str("cpu", processor->vendor_id);              get_float("bogomips", processor->bogomips); -              get_str("model name", processor->strmodel); - -            get_int("I-cache", processor->has_fpu); -            get_int("D-cache", processor->flags); +            get_str("I-cache", processor->icache_str); +            get_str("D-cache", processor->dcache_str);          }          g_strfreev(tmp); @@ -92,6 +90,6 @@ processor_get_info(GSList *processors)                     _("BogoMips"), processor->bogomips,                     _("Byte Order"), byte_order_str(),                     _("Cache"), -                   processor->has_fpu, -                   processor->flags); +                   processor->icache_str, +                   processor->dcache_str);  } | 
