Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Sep 2016 10:30:24 -0700
From:      John Baldwin <jhb@freebsd.org>
To:        Mark Johnston <markj@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r305368 - head/sys/kern
Message-ID:  <2134943.hUK9aHv09Y@ralph.baldwin.cx>
In-Reply-To: <201609040029.u840Tn5D019584@repo.freebsd.org>
References:  <201609040029.u840Tn5D019584@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, September 04, 2016 12:29:49 AM Mark Johnston wrote:
> Author: markj
> Date: Sun Sep  4 00:29:48 2016
> New Revision: 305368
> URL: https://svnweb.freebsd.org/changeset/base/305368
> 
> Log:
>   Micro-optimize sleepq_signal().
>   
>   Lift a comparison out of the loop that finds the highest-priority thread
>   on the queue.
>   
>   MFC after:	1 week

Could this safely use TAILQ_FOREACH_FROM?

-- 
John Baldwin



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