Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Mar 2001 13:38:51 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Greg Lehey <grog@lemis.com>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/isa apic_vector.s icu_vector.s
Message-ID:  <XFMail.010306133851.jhb@FreeBSD.org>
In-Reply-To: <20010307075017.P13082@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 06-Mar-01 Greg Lehey wrote:
> On Sunday,  4 March 2001 at 20:37:54 -0800, John Baldwin wrote:
>> jhb         2001/03/04 20:37:54 PST
>>
>>   Modified files:
>>     sys/i386/isa         apic_vector.s icu_vector.s
>>   Log:
>>   Don't enable interrupts before calling sched_ithd for threaded interrupts.
> 
> What effect is this going to have on performance?  When do interrupts
> get reenabled?

It should have very little effect on performance.  Interrupts are enabled in
ast() when returning to userland or in iret after returning back to the kernel.
Note that we engage in some magic in ithread_schedule to enable interrupts in
the saved interrupt state of sched_lock before we call mi_switch() so that the
ithread itself runs with interrupts enabled, and interrutps won't be disabled
until we return to the orignal thread.

> Greg
> --
> Finger grog@lemis.com for PGP public key
> See complete headers for address and phone numbers

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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