From 05c4a4c9451b7b07577255f7927cec6d70f2cf8d Mon Sep 17 00:00:00 2001 From: Burt P Date: Thu, 10 Aug 2017 11:20:16 -0500 Subject: Separate processor name and description + count cores and threads * add cpu_procs_cores_threads() function to get counts from sysfs/topology * each platform must now provide processor_name() and processor_describe() * processor_name_default(): returns a list of unique processor->model_name * processor_describe_default(): returns "N physical; M cores; L threads" * processor_describe_by_counting_names(): returns a list of unique processor->model_name with Nx prefix (ex: "4x ARM Cortex A53 + 4x ARM Cortex A33") * x86: _name and _describe use defaults * arm: _name returns name of SOC, if available, _describe returns processor_describe_by_counting_names() * all other platforms: _name and _describe use defaults * Computer module summary now shows both name and description for CPU Signed-off-by: Burt P --- modules/computer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/computer.c') diff --git a/modules/computer.c b/modules/computer.c index ec1d6c0f..f30b884e 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -767,7 +767,7 @@ gchar *hi_module_get_summary(void) "Method=computer::getOS\n" "[%s]\n" "Icon=processor.png\n" - "Method=devices::getProcessorName\n" + "Method=devices::getProcessorNameAndDesc\n" "[%s]\n" "Icon=memory.png\n" "Method=devices::getMemoryTotal\n" -- cgit v1.2.3