Re: [PATCH v2 2/3] rteval: Minor improvements to CpuList class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 24 Nov 2023, Tomas Glozar wrote:

> č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.
> 
Or just check cpu1 like we already do! 

John

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux