Page MenuHomeFreeBSD

smp: remove unused hlt_cpus_mask
AcceptedPublic

Authored by mhorne on Fri, Jul 10, 5:31 PM.

Details

Reviewers
kib
olce
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 74707
Build 71590: arc lint + arc unit

Event Timeline

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

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

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