]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: set nooverwrite for Phytium ARM implementer
authorKarel Zak <kzak@redhat.com>
Thu, 28 May 2026 10:04:32 +0000 (12:04 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Jun 2026 10:49:43 +0000 (12:49 +0200)
The Phytium kernel provides model name in /proc/cpuinfo, prefer it
over the hardcoded table.

Addresses: https://github.com/util-linux/util-linux/pull/4362
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-arm.c

index 978066e390d58980d1c75a8f509d14f3a2ff1ee4..89d6c809ef51bea4d42b48f4fab98226ba8dfed6 100644 (file)
@@ -327,7 +327,7 @@ static const struct hw_impl hw_implementer[] = {
     { 0x66, faraday_part, "Faraday" },
     { 0x69, intel_part,   "Intel" },
     { 0x6d, ms_part,      "Microsoft" },
-    { 0x70, ft_part,      "Phytium" },
+    { 0x70, ft_part,      "Phytium",  HW_IMPL_NOOVERWRITE },
     { 0xc0, ampere_part,  "Ampere" },
     { -1,   unknown_part, "unknown" },
 };