From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Galbraith Subject: Re: [RFC -v3 PATCH 2/3] sched: add yield_to function Date: Tue, 04 Jan 2011 02:51:20 +0100 Message-ID: <1294105880.5617.7.camel@marge.simson.net> References: <20110103162637.29f23c40@annuminas.surriel.com> <20110103162918.577a9620@annuminas.surriel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Avi Kiviti , Srivatsa Vaddagiri , Peter Zijlstra , Chris Wright To: Rik van Riel Return-path: In-Reply-To: <20110103162918.577a9620@annuminas.surriel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, 2011-01-03 at 16:29 -0500, Rik van Riel wrote: > From: Mike Galbraith > > Add a yield_to function to the scheduler code, allowing us to > give enough of our timeslice to another thread to allow it to > run and release whatever resource we need it to release. > > We may want to use this to provide a sys_yield_to system call > one day. > > Signed-off-by: Rik van Riel > Signed-off-by: Marcelo Tosatti > Signed-off-by: Mike Galbraith > > --- > Mike, want to change the above into a Signed-off-by: ? :) > This code seems to work well. Done. -Mike