Bug 280823

Summary: sysutils/lscpu: Fix AMD threads per core
Product: Ports & Packages Reporter: Laurent Chardon <laurent.chardon>
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (zi)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sysutils-lscpu-Fix-AMD-threads-per-core none

Description Laurent Chardon 2024-08-14 23:19:48 UTC
Created attachment 252768 [details]
sysutils-lscpu-Fix-AMD-threads-per-core

A hard coded value of 1 thread per core was used for AMD CPUs.
This PR implements proper number of threads per core for FreeBSD,
using kernel parameters instead of cpuid and hard coded values.

Various Makefile cleanups.

poudriere: OK
portlint: OK
Comment 1 Ryan Steinmetz freebsd_committer freebsd_triage 2024-08-18 17:02:15 UTC
Committed, thanks.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-08-18 17:03:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2fb2ddb857362244c42eb8fe99b11a3b6ab8e0ba

commit 2fb2ddb857362244c42eb8fe99b11a3b6ab8e0ba
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2024-08-18 17:01:22 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2024-08-18 17:01:22 +0000

    sysutils/lscpu: Fix AMD threads per core

    - Bump PORTREVISION

    PR:             280823
    Submitted by:   laurent.chardon@gmail.com
    Obtained from:  upstream repo

 sysutils/lscpu/Makefile | 11 +++++++----
 sysutils/lscpu/distinfo |  4 +++-
 2 files changed, 10 insertions(+), 5 deletions(-)