freebsd-src/sys/powerpc
Olivier Certner 2fefe2c88b
runq: Deduce most parameters, remove machine headers
The 'runq' machinery now depends on only two settable parameters,
RQ_MAX_PRIO, the maximum priority number that can be accepted, the
minimum being 0, and RQ_PPQ, the number of priorities per queue (to
reduce the number of queues).

All other parameters are deduced from these ones.  Also, all
architectures automatically get a runq word that is their natural word.

RQB_FFS() always was 'ffsl() - 1' except for amd64 where it was
'bsfq()'.  Now that all these finally call compiler builtins, the
resulting assembly code is the same, so there is no cost to removing
this special case.

After all these changes, <machine/runq.h> headers have no more purpose,
so remove them.

While here, fix potentially confusing parameter name for RQB_WORD() and
RQB_BIT().

While here, include all necessary headers so that <sys/runq.h> can be
included standalone.

No functional change (intended).

Reviewed by:    kib
MFC after:      1 month
Event:          Kitchener-Waterloo Hackathon 202506
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D45387
2025-06-17 22:07:56 -04:00
..
aim vm: remove pa_index from the machine-independent layer 2025-06-13 13:23:28 -05:00
amigaone sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
booke powerpc: add missing header 2025-04-21 00:50:37 -05:00
conf powerpc: Enable VIMAGE on more kernel configs 2025-05-20 12:09:29 +08:00
cpufreq sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fpu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
include runq: Deduce most parameters, remove machine headers 2025-06-17 22:07:56 -04:00
mambo Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
mikrotik sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mpc85xx machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
ofw machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
powermac machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
powernv Revert "powernv: Add RF_BIGENDIAN resource flag" 2025-05-14 09:50:12 -04:00
powerpc thr_new: pass params.flags to cpu_set_user_tls() 2025-05-31 17:55:24 +03:00
ps3 ps3disk.c: Rewrite ps3disk_transfer 2025-01-24 12:40:34 -07:00
pseries Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
psim machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00