hwpstate_intel(4): use CPU_FOREACH instead of an IPI
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 74940 Build 71823: arc lint + arc unit
Event Timeline
| sys/x86/cpufreq/hwpstate_intel.c | ||
|---|---|---|
| 379–380 | You could just do CPU_FOREACH() as well. I think it would be nicer without introducing a global useful only for the specific driver. What is the problem? Missing PCPU small_cores on i386? Why not add the member there, formally, without initializing? | |
| sys/x86/cpufreq/hwpstate_intel.c | ||
|---|---|---|
| 379–380 |
Yeah, no pc_small_core on i386. I'm fine with that as a fix. I didn't do that initially because I thought pc_small_cores would be nonsense on i386 and memorizing the presence of small cores seemed to address two problems, but I do like that that approach will only affect i386 sources. I'll update the diffs. And yes, ack on the CPU_FOREACH. @olce made a similar comment on D57377. | |
Refresh after conflict resolution for 02c440e20404 ("hwpstate_intel: Minimize ifdef for i386 build")
Fine, though please note I have a lot of rework of hwpstate_intel(4) incoming, in particular dropping this hybrid core detection code, so if you plan more/significant work in this area please liaise with me.
Nothing planned. I was only trying to clean this up related to the build break, which is now solved. If you'll be cleaning this up soon anyway, I'll be happy to either push this now as-is or drop it entirely and leave it to you. LMK, or, if you don't have a preference, I'll commit tomorrow to clear it off my patch stack.