čt 23. 11. 2023 v 17:21 odesílatel John Kacur <jkacur@xxxxxxxxxx> napsal: > The reason we check cpu1 is that on some hardware where you can't turn off > cpu0, the online file also doesn't exist even though it is available for > other cpus. We only want to learn whether we can use it in general or not. > > For example on my laptop > > [jkacur@fionn rteval]$ ls /sys/devices/system/cpu/cpu0/online > ls: cannot access '/sys/devices/system/cpu/cpu0/online': No such file or > directory > [jkacur@fionn rteval]$ ls /sys/devices/system/cpu/cpu1/online > /sys/devices/system/cpu/cpu1/online > > John > Oh I've never encountered that, thanks for pointing that out, that's interesting. I'd say we should check for cpu0 || cpu1 then. Tomas