On Fri, 8 Dec 2023 18:38:20 +0100 Martin Mareš <mj@xxxxxx> wrote: > > +static bool read_cpuinfo(union cpuinfo *cpuinfo) > > +{ > > + FILE *cpu_file = fopen("/proc/cpuinfo", "r"); > > + if (!cpu_file) > > + return false; > > This works only on Linux. > > Wouldn't it be possible to identify Ice Lake by PCI ID of the root bridge > instead? Thanks, great idea! This should work. Best regards, Nikita Proshkin