[V1] framework/crb: fix bug of generating core list on freebsd platform
Checks
Commit Message
On freebsd platform that supporting Hyper threading, if crb.cfg configured
support pass core 0, the cores list(Hyper threading) need not only skip thread 0,
but also other threads that on core 0.
Signed-off-by: Jun Dong <junx.dong@intel.com>
---
framework/crb.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Comments
On Fri, 29 Apr 2022 17:09:58 +0800, Jun Dong <junx.dong@intel.com> wrote:
> On freebsd platform that supporting Hyper threading, if crb.cfg configured
> support pass core 0, the cores list(Hyper threading) need not only skip thread 0,
> but also other threads that on core 0.
>
> Signed-off-by: Jun Dong <junx.dong@intel.com>
Reviewed-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks
@@ -739,10 +739,11 @@ class Crb(object):
for core in core_elements:
threads = [int(x) for x in core.text.split(",")]
for thread in threads:
- if thread != 0:
- self.cores.append(
- {"socket": socket_id, "core": core_id, "thread": thread}
- )
+ if self.crb["bypass core0"] and socket_id == 0 and core_id == 0:
+ continue
+ self.cores.append(
+ {"socket": socket_id, "core": core_id, "thread": thread}
+ )
core_id += 1
socket_id += 1
self.number_of_cores = len(self.cores)