]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Add missing Ampere cores
authorThomasKaiser <ThomasKaiser@users.noreply.github.com>
Sun, 22 Jan 2023 11:41:36 +0000 (12:41 +0100)
committerGitHub <noreply@github.com>
Sun, 22 Jan 2023 11:41:36 +0000 (12:41 +0100)
https://github.com/ThomasKaiser/sbc-bench/commit/37332238c0a8b7c1555dca9d18a7c98362564416#diff-fdfd2a032c64d6e9ba92a3197cad6b26573c7094433d74efa4ae80f44f65aa99

sys-utils/lscpu-arm.c

index f65b25ed66d04d68fa1d32c5b30701bc2fe76391..cf45bac18e51b0adf7641ef945147182169d0a29 100644 (file)
@@ -224,6 +224,12 @@ static const struct id_part hisi_part[] = {
     { -1, "unknown" },
 };
 
+static const struct id_part ampere_part[] = {
+    { 0xac3, "Ampere-1" },
+    { 0xac4, "Ampere-1a" },
+    { -1, "unknown" },
+};
+
 static const struct id_part ft_part[] = {
     { 0x660, "FTC660" },
     { 0x661, "FTC661" },
@@ -260,7 +266,7 @@ static const struct hw_impl hw_implementer[] = {
     { 0x66, faraday_part, "Faraday" },
     { 0x69, intel_part,   "Intel" },
     { 0x70, ft_part,      "Phytium" },
-    { 0xc0, unknown_part, "Ampere" },
+    { 0xc0, ampere_part,  "Ampere" },
     { -1,   unknown_part, "unknown" },
 };