hlt_cpus_mask
John Baldwin
jhb at FreeBSD.org
Wed Sep 1 14:14:08 PDT 2004
On Saturday 28 August 2004 03:41 am, Julian Elischer wrote:
> This is defined static in i386 and amd64,
> but as it is not exported it can not be used in
> subr_smp.c, which probably should mask against it when trying to
> forward roundrobin and signals.
>
> should this be a globally available thing?
> Otherwise we are sending IPIs to threads that are
> not capable of doing anything with them.
More correct might be to add an 'active_cpus' mask that contains the set of
active CPUs and use that in place of all_cpus where appropriate.
active_cpus would basically be 'all_cpus & ~hlt_cpus_mask', but it probably
makes more sense from an MI perspective since 'hlt' is fairly x86-specific.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-current
mailing list