Page MenuHomeFreeBSD

sched: rename sched_schedcpu() to sched_sysinit()
ClosedPublic

Authored by mchoo on Sat, Sep 5, 1:23 AM.
Tags
None
Referenced Files
F174422447: D59437.id187110.diff
Sat, Oct 3, 2:15 AM
F174324005: D59437.diff
Fri, Oct 2, 9:48 AM
Unknown Object (File)
Thu, Oct 1, 4:30 PM
Unknown Object (File)
Fri, Sep 25, 3:40 PM
Unknown Object (File)
Thu, Sep 24, 4:45 AM
Unknown Object (File)
Sat, Sep 19, 4:04 PM
Unknown Object (File)
Sat, Sep 19, 11:34 AM
Unknown Object (File)
Wed, Sep 16, 4:39 AM
Subscribers

Details

Summary

sched_schedcpu() is called only during SYSINIT to start kthread that
calls schedcpu() every second in 4BSD, but its name implies it's doing
what 4BSD's schedcpu() does. Rename this function to sched_sysinit() to
mark that schedulers can use it for its own SYSINIT routine. Note that
their SYSINIT routine does not necessarily need to be similar to 4BSD's
decay in schedcpu().

The scheduler.9 man page is planned to be rewritten from scratch, so no
change to it for now.

MFC after: 2 weeks
MFC to: stable/14, stable/15
Sponsored by: FreeBSD Foundation, Reliable Computer Systems Lab

Diff Detail

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