Page MenuHomeFreeBSD

Attach dev.cpu nodes on SMT cores, using only the first found thread
ClosedPublic

Authored by jhibbits on Jun 20 2018, 4:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 14, 9:06 AM
Unknown Object (File)
Mon, Apr 14, 5:07 AM
Unknown Object (File)
Sun, Apr 13, 11:47 PM
Unknown Object (File)
Sun, Apr 13, 11:43 PM
Unknown Object (File)
Sun, Apr 13, 11:42 PM
Unknown Object (File)
Tue, Mar 18, 12:44 PM
Unknown Object (File)
Mar 5 2025, 7:54 AM
Unknown Object (File)
Mar 4 2025, 7:56 PM
Subscribers

Details

Summary

In order to use cpufreq(4), a dev.cpu attachment must be created. If the IBM property is found denoting SMT, attach only to the first thread setup, so that a cpufreq device can bind.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Approved if you fix the #if 0 bit.

sys/dev/ofw/ofw_cpu.c
199 ↗(On Diff #44127)

Probably this part can just be deleted?

This revision is now accepted and ready to land.Jun 20 2018, 4:59 AM
sys/dev/ofw/ofw_cpu.c
199 ↗(On Diff #44127)

Yes it can. I had kept it in just for reference, and forgot to delete it.

This revision was automatically updated to reflect the committed changes.