Bug 280823 - sysutils/lscpu: Fix AMD threads per core
Summary: sysutils/lscpu: Fix AMD threads per core
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-14 23:19 UTC by Laurent Chardon
Modified: 2024-08-18 17:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (zi)


Attachments
sysutils-lscpu-Fix-AMD-threads-per-core (2.16 KB, patch)
2024-08-14 23:19 UTC, Laurent Chardon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)