From e97c38db42733c2115822e42d6aa9446574e2bcc Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 10 Jul 2017 00:26:04 -0500 Subject: 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 --- modules/devices/sh/processor.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'modules/devices/sh') diff --git a/modules/devices/sh/processor.c b/modules/devices/sh/processor.c index 92b96f73..b1f0e5d6 100644 --- a/modules/devices/sh/processor.c +++ b/modules/devices/sh/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) @@ -63,10 +52,8 @@ processor_scan(void) fclose(cpuinfo); - if (!processor->model_name) - processor->model_name = _("SuperH Processor"); - if (!processor->vendor_id) - processor->vendor_id = _("(Unknown)"); + STRIFNULL(model_name, _("SuperH Processor")); + UNKIFNULL(vendor_id); return g_slist_append(NULL, processor); } -- cgit v1.2.3