[U-Boot] Question regarding cpu_get_count(..)

Bin Meng bmeng.cn at gmail.com
Fri Apr 6 07:47:36 UTC 2018


Hi Christian,

On Fri, Apr 6, 2018 at 2:55 PM, Christian Gmeiner
<christian.gmeiner at gmail.com> wrote:
> Hi
>
> I tried my luck on the u-boot irc channel but nobody cared so I am
> asking this here again.
> Does cpu_get_count(..) return the number of physical CPUs or the
> number of logical CPUs?
>
> I am currently preparing a patch set which adds
> arch/x86/cpu/queensbay/cpu.c and there I need
> to specify a struct cpu_ops with a function called get_count(). But
> what must I return (physical vs. logical CPU count)?
>

It's logical CPUs, say you have one physical CPU, each with
dual-threads, so get_count() returns 2.

But Intel CrownBay already supports SMP in U-Boot. What patch are you
working on?

Regards,
Bin


More information about the U-Boot mailing list