]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add an optimization where we check hte PS_ASTPENDING and PS_NEEDRESCHED
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 10 Aug 2001 23:00:07 +0000 (23:00 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 10 Aug 2001 23:00:07 +0000 (23:00 +0000)
commit0f345c4054c13dfe741f6c23f057c62a6359370f
tree2c126aa8065a99016cdde9f028ddbdfec638a7a7
parent688ebe120c47c9478446c12022b5e4667c2bff7a
Add an optimization where we check hte PS_ASTPENDING and PS_NEEDRESCHED
flags with interrupts disabled to see if we should call ast() during
doreti.  This was mostly submitted by Bruce, but his original patch did
the looping in ast() in assembly rather than in the ast() function itself.
Once we've actually called into the ast() function, it's cheaper to just
loop inside the function rather than returning from the function,
performing the check, and then calling the function again.  However, we
can optimize the first check to avoid calling the function at all.
Other architectures may choose to implement this optimization if they
wish but it is not required for correct operation.

Submitted by: bde
sys/i386/isa/ipl.s