aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/ppc
AgeCommit message (Collapse)Author
2017-08-11Make MHz translatable in CPU listBurt P
It was kindof translatable before, but as part of a messy use-once c-format string. In this form it is re-usable elsewhere. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Separate processor name and description + count cores and threadsBurt P
* 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 <pburt0@gmail.com>
2017-07-25device tree: fix crash when device tree is not foundBurt P
* check if device tree was found before add_keys() * UNKIFNULL(model) before strcmp * make UNKIFNULL() STRIFNULL() EMPIFNULL() macros more generic Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12minor changesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Move common processor stuff into cpu_util.{h,c}Burt P
* PROC_CPUINFO define used in testing * STRIFNULL(), UNKIFNULL() EMPIFNULL() macros used in reading cpuinfo * byte order, topology, and cpufreq data structures and functions that are platform independent * processor_has_flag() helper Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Add CMake options to allow testing various platform's processor.cBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Cleanup all platform's proccessor.c, use translatable labels.Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: more processor label strings translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: code commentsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: more processor info strings translatableBurt P
Additional labels made translatable and some cleanup. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12x86,arm,ppc: make processor info strings more easily translatedBurt P
Make some recently added info labels easy to translate. Includes the topology and frequency scaling strings. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-06PPC: Information improvementsBurt P
Based on the recent ARM work. * Shows multiple processors, like x86 and ARM * topology: physical package and core ids * cpufreq: min/max/cur frequency and driver info Tested against /proc/cpuinfos from a PowerMac G5 and the Talos POWER8 workstation. Not tested on actual hardware. Signed-off-by: Burt P <pburt0@gmail.com>
2010-05-05Add processor.c implementation for other supported architecturesLeandro A. F. Pereira