Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934057AbYBHK3H (ORCPT ); Fri, 8 Feb 2008 05:29:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760366AbYBHK2y (ORCPT ); Fri, 8 Feb 2008 05:28:54 -0500 Received: from ns.suse.de ([195.135.220.2]:58030 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759225AbYBHK2x (ORCPT ); Fri, 8 Feb 2008 05:28:53 -0500 From: Andi Kleen Organization: SUSE Linux Products GmbH, Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg) To: Venki Pallipadi Subject: Re: [PATCH] x86: Simplify cpu_idle_wait Date: Fri, 8 Feb 2008 11:28:48 +0100 User-Agent: KMail/1.9.6 Cc: Andrew Morton , Steven Rostedt , LKML , Linus Torvalds , Ingo Molnar , Thomas Gleixner , "Brown, Len" , Adam Belay , Peter Zijlstra References: <1199759244.26343.35.camel@localhost.localdomain> <20080208010550.GA8090@linux-os.sc.intel.com> In-Reply-To: <20080208010550.GA8090@linux-os.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802081128.48621.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 537 Lines: 16 > - set_cpus_allowed(current, tmp); > + smp_mb(); > + /* kick all the CPUs so that they exit out of pm_idle */ > + smp_call_function(do_nothing, NULL, 0, 0); I think the last argument (wait) needs to be 1 to make sure it is synchronous (for 32/64) Otherwise the patch looks great. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/