From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261370AbULTBDc (ORCPT ); Sun, 19 Dec 2004 20:03:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261371AbULTBDb (ORCPT ); Sun, 19 Dec 2004 20:03:31 -0500 Received: from fsmlabs.com ([168.103.115.128]:10668 "EHLO fsmlabs.com") by vger.kernel.org with ESMTP id S261370AbULTBD3 (ORCPT ); Sun, 19 Dec 2004 20:03:29 -0500 Date: Sun, 19 Dec 2004 17:59:58 -0700 (MST) From: Zwane Mwaikambo To: Nish Aravamudan cc: "Paul E. McKenney" , Andrew Morton , Stephen Rothwell , Linux Kernel , Dipankar Sarma , Li Shaohua , Len Brown Subject: Re: [PATCH] Remove RCU abuse in cpu_idle() In-Reply-To: <29495f1d04121818403f949fdd@mail.gmail.com> Message-ID: References: <20041205004557.GA2028@us.ibm.com> <20041205232007.7edc4a78.akpm@osdl.org> <20041206160405.GB1271@us.ibm.com> <20041206192243.GC1435@us.ibm.com> <29495f1d04121818403f949fdd@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Dec 2004, Nish Aravamudan wrote: > All of these schedule_timeout() calls are broken. They do not set the > state before hand and therefore will return early. Since you're not > checking for signals and there are no waitqueue events around the > code, I'm assuming you can just use ssleep(1) instead of the current > schedule_timeout() calls. Returning early is fine (and will happen if the other processors are busy), we're spinning on a condition, but yes ssleep() could be used instead. Thanks, Zwane