diff options
author | Burt P <pburt0@gmail.com> | 2017-07-10 00:26:04 -0500 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2017-07-12 19:38:41 -0700 |
commit | e97c38db42733c2115822e42d6aa9446574e2bcc (patch) | |
tree | a254aa9985f4fe346c2bd275a76cb23a2d2c9931 /modules/devices/sparc/processor.c | |
parent | d42ee4cb296043ee763ea93afe16ea534b0d70d0 (diff) |
The rest of processor.c using cpu_util.
Those currently not using topology or cpufreq, but could in
the future.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/sparc/processor.c')
-rw-r--r-- | modules/devices/sparc/processor.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/modules/devices/sparc/processor.c b/modules/devices/sparc/processor.c index 05103a2b..32450f6f 100644 --- a/modules/devices/sparc/processor.c +++ b/modules/devices/sparc/processor.c @@ -18,18 +18,7 @@ #include "hardinfo.h" #include "devices.h" - -gchar *byte_order_str() { -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - return _("Little Endian"); -#else - return _("Big Endian"); -#endif -} - -#ifndef PROC_CPUINFO -#define PROC_CPUINFO "/proc/cpuinfo" -#endif +#include "cpu_util.h" GSList * processor_scan(void) @@ -70,13 +59,13 @@ processor_get_info(GSList *processors) Processor *processor = (Processor *)processors->data; return g_strdup_printf("[%s]\n" - "CPU=%s\n" - "FPU=%s\n" + "%s=%s\n" /* cpu */ + "%s=%s\n" /* fpu */ "%s=%s\n" /* byte order */ - "%s=%s\n", + "%s=%s\n", /* caps */ _("Processor"), - processor->model_name, - processor->has_fpu, + _("CPU"), processor->model_name, + _("FPU"), processor->has_fpu, _("Byte Order"), byte_order_str(), _("Capabilities"), processor->cpucaps ); |