Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2001 16:00:07 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/isa ipl.s
Message-ID:  <200108102300.f7AN07j53918@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/08/10 16:00:07 PDT

  Modified files:
    sys/i386/isa         ipl.s 
  Log:
  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
  
  Revision  Changes    Path
  1.51      +11 -1     src/sys/i386/isa/ipl.s


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?200108102300.f7AN07j53918>