Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu: Add helper cpu_model_from_type()
Add helper cpu_model_from_type() to extract the CPU model name from the CPU type name in two circumstances: (1) The CPU type name is the combination of the CPU model name and suffix. (2) The CPU type name is same to the CPU model name. The helper will be used in the subsequent commits to conver the CPU type name to the CPU model name. Suggested-by: Igor Mammedov <[email protected]> Signed-off-by: Gavin Shan <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-ID: <[email protected]> [PMD: Mention returned string must be released with g_free()] Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
- Loading branch information