From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [RFC -v3 PATCH 2/3] sched: add yield_to function Date: Tue, 04 Jan 2011 14:03:28 +0200 Message-ID: <4D230C90.6060104@redhat.com> References: <20110103162637.29f23c40@annuminas.surriel.com> <20110103162918.577a9620@annuminas.surriel.com> <20110104151345.3BC2.A69D9226@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Rik van Riel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Srivatsa Vaddagiri , Peter Zijlstra , Mike Galbraith , Chris Wright To: KOSAKI Motohiro Return-path: In-Reply-To: <20110104151345.3BC2.A69D9226@jp.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 01/04/2011 08:14 AM, KOSAKI Motohiro wrote: > Also, If pthread_cond_signal() call sys_yield_to imlicitly, we can > avoid almost Nehalem (and other P2P cache arch) lock unfairness > problem. (probaby creating pthread_condattr_setautoyield_np or similar > knob is good one) Often, the thread calling pthread_cond_signal() wants to continue executing, not yield. -- error compiling committee.c: too many arguments to function