From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: yield() in i2c non-happy paths hits BUG under -rt patch Date: Thu, 19 Nov 2009 12:59:06 +0000 Message-ID: <20091119125906.6ad00edd@lxorguk.ukuu.org.uk> References: <20091107210147.3e754278@hyperion.delvare> <4AF7148C.9090706@thebigcorporation.com> <20091112211255.09cd884a@hyperion.delvare> <20091116155606.GC29479@sirena.org.uk> <20091118010520.4cd397d4@lxorguk.ukuu.org.uk> <20091118175202.490989d8@hyperion.delvare> <20091119130526.23a69b85@hyperion.delvare> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091119130526.23a69b85-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jean Delvare Cc: Thomas Gleixner , Leon Woestenberg , Mark Brown , Sven-Thorsten Dietrich , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rt-users , "Ben Dooks (embedded platforms)" , Peter Zijlstra , LKML List-Id: linux-i2c@vger.kernel.org > Well, I guess only people monitoring system latency would notice, as > this is the only thing yield() was supposed to help with in the first > place. if (need_resched()) schedule(); will make non-rt tasks act politely at the right moments. RT tasks will likely immediately get to take the CPU again depending upon the scheduling parameters in use.