On Tue, Jun 15, 2021 at 09:20:55AM +0000, Huang Shijie wrote: > > > + /* Get CPU family */ > > > + memset(buf, 0, sizeof(buf)); > > > + sprintf(buf, "%d", di.processor_family); > > > + free(ct->family); > > > + ct->family = xstrdup(buf); > > > > is there any difference between "cpu family" from /proc/cpuinfo and > > this DMI field? Do we need a new field ct->bios_family or overwrite > > the ct->family good enough? I don't know ;-) > > > In the arm platform, it seems it does not show the "cpu family" info in lscpu. > And I did not find the "cpu family" in the /proc/cpuinfo, only find "cpu architecture: 8". > Unfortunately, the "cpu architecture :8 " is hardcode, it will be changed for armv9 in future. > > In the DMI, the "cpu family" shows 0x101 which means "arm v8". So, re-use ct->family for now. We can change it later. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com