procfs cpuinfo: use sequence number as processor

Change-Id: Idbfa48e9b60c03495d7ba72e962c55f0ffb8bec9
This commit is contained in:
Toshiyuki Takahashi
2020-03-10 23:01:48 +09:00
committed by Masamichi Takagi
parent 32b32f0c4a
commit bb7e140655
6 changed files with 126 additions and 1 deletions

View File

@ -1223,7 +1223,7 @@ long ihk_mc_show_cpuinfo(char *buf, size_t buf_size, unsigned long read_off, int
/* generate strings */
loff += scnprintf(lbuf + loff, lbuf_size - loff,
"processor\t: %d\n", cpuinfo->hwid);
"processor\t: %d\n", i);
loff += scnprintf(lbuf + loff, lbuf_size - loff, "Features\t:");
for (j = 0; hwcap_str[j]; j++) {