Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2011 13:00:11 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: COUNT_IPIS vs CPU_FOREACH
Message-ID:  <4DC90CAB.7020609@FreeBSD.org>
In-Reply-To: <201105090935.54264.jhb@freebsd.org>
References:  <4DC512D6.9070904@FreeBSD.org> <201105090935.54264.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
on 09/05/2011 16:35 John Baldwin said the following:
> On Saturday, May 07, 2011 5:37:26 am Andriy Gapon wrote:
>>
>> I believe that the following change is needed to fix COUNT_IPIS option.
>> Right now it seems to be a noop.
>>
>>
>>     mp_ipi_intrcnt: CPU_FOREACH can't be used this early
>>
>>     ... because all_cpus is not set yet.
> 
> Have you tested this?
> 
> all_cpus is set by start_all_aps() from cpu_mp_start() which runs at 
> SI_SUB_CPU.   This SYSINIT runs later at SI_SUB_INTR.
> 
> So I think CPU_FOREACH() should be fine here.

I think that you are right, it seems that I've screwed up my original
(pre-patch) testing - installed my experimental kernel to a wrong place.

-- 
Andriy Gapon



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