Skip to content

Commit 0a4d622

Browse files
HmnSnCarterLi
authored andcommitted
CPU (Linux): add cpu name detection for ia64
1 parent 6b037c5 commit 0a4d622

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/detection/cpu/cpu_linux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ static const char* parseCpuInfo(
353353
(cpu->name.length == 0 && ffParsePropLine(line, "processor 0:", &cpu->name)) ||
354354
(cpu->vendor.length == 0 && ffParsePropLine(line, "vendor_id :", &cpu->vendor)) ||
355355
(cpuMHz->length == 0 && ffParsePropLine(line, "cpu MHz static :", cpuMHz)) || // This one cannot be detected because of early return
356+
#elif __ia64__
357+
(cpu->name.length == 0 && ffParsePropLine(line, "model name :", &cpu->name)) ||
358+
(cpu->vendor.length == 0 && ffParsePropLine(line, "vendor :", &cpu->vendor)) ||
359+
(cpuMHz->length == 0 && ffParsePropLine(line, "cpu MHz :", cpuMHz)) ||
356360
#else
357361
(cpu->name.length == 0 && ffParsePropLine(line, "model name :", &cpu->name)) ||
358362
(cpu->name.length == 0 && ffParsePropLine(line, "model :", &cpu->name)) ||

0 commit comments

Comments
 (0)