Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2004 16:36:22 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Cc:        FreeBSD current mailing list <current@FreeBSD.org>
Subject:   Re: hlt_cpus_mask
Message-ID:  <200409011636.22089.jhb@FreeBSD.org>
In-Reply-To: <41303747.4050104@elischer.org>
References:  <41303747.4050104@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409011636.22089.jhb>