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)
Tue, Nov 12, 3:52 PM
Unknown Object (File)
Sat, Nov 2, 5:54 PM
Unknown Object (File)
Oct 16 2024, 12:42 PM
Unknown Object (File)
Oct 13 2024, 8:39 AM
Unknown Object (File)
Oct 13 2024, 8:39 AM
Unknown Object (File)
Oct 13 2024, 8:38 AM
Unknown Object (File)
Oct 13 2024, 8:27 AM
Unknown Object (File)
Oct 3 2024, 9:57 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 Passed
Unit
No Test Coverage
Build Status
Buildable 17473
Build 17303: arc lint + arc unit

Event Timeline

Approved if you fix the #if 0 bit.

sys/dev/ofw/ofw_cpu.c
199

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

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.