Skip to content

Commit 88c8dcb

Browse files
committed
CPU (Linux): improves detection for T-Head CPU vendor
Ref: #1997
1 parent f3a8fed commit 88c8dcb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/detection/cpu/cpu_linux.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,13 @@ FF_MAYBE_UNUSED static void detectSocName(FFCPUResult* cpu)
716716
for (const char* p = model; *p; ++p)
717717
ffStrbufAppendC(&cpu->name, (char) toupper(*p));
718718
}
719+
else if (ffStrEquals(vendor, "thead"))
720+
{
721+
// Lichee Pi?
722+
ffStrbufSetStatic(&cpu->vendor, "T-Head");
723+
for (const char* p = model; *p; ++p)
724+
ffStrbufAppendC(&cpu->name, (char) toupper(*p));
725+
}
719726
else
720727
{
721728
ffStrbufSetS(&cpu->name, model);

0 commit comments

Comments
 (0)