Page MenuHomeFreeBSD

smp: remove unused hlt_cpus_mask
ClosedPublic

Authored by mhorne on Fri, Jul 10, 5:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 7, 3:11 PM
Unknown Object (File)
Fri, Aug 7, 9:03 AM
Unknown Object (File)
Fri, Jul 31, 10:25 PM
Unknown Object (File)
Wed, Jul 29, 4:00 AM
Unknown Object (File)
Tue, Jul 28, 4:45 PM
Unknown Object (File)
Sun, Jul 26, 9:28 AM
Unknown Object (File)
Fri, Jul 24, 6:10 AM
Unknown Object (File)
Wed, Jul 22, 11:42 AM
Subscribers

Details

Summary

It is a relic, apparently once populated by a machdep.hlt_cpus sysctl.
The sysctl was removed, and ULE has never honored this mask. It is now
safe to remove.

Remove the mask, and its few remaning references in: sched_4bsd(4),
hwpmc(4), and hwt(4).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/kern/kern_pmc.c
154–155

Can all these #ifdef SMP be removed? Why wouldn't the SMP case work for !SMP?

sys/kern/sched_4bsd.c
1828

do_timer_accounting now does not have any function, it should be removed.

Ahh, you do it in the next review.

This revision is now accepted and ready to land.Fri, Jul 10, 6:42 PM
olce added inline comments.
sys/kern/kern_pmc.c
154–155

All SMP cases work exactly the same on !SMP (except pmc_cpu_is_primary(), which now depends on the hardware not messing up).

sys/kern/kern_pmc.c
154–155

Most of these functions can in fact be removed completely, or inlined. I have a WIP branch to clean this up, it only requires a small sweep of the hwpmc code.

This revision was automatically updated to reflect the committed changes.