Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761463Ab2BOCAf (ORCPT ); Tue, 14 Feb 2012 21:00:35 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:60930 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755213Ab2BOCAe (ORCPT ); Tue, 14 Feb 2012 21:00:34 -0500 Date: Wed, 15 Feb 2012 09:39:58 +0800 From: Yong Zhang To: Peter Zijlstra Cc: Venki Pallipadi , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Suresh Siddha , Aaron Durbin , Paul Turner , linux-kernel@vger.kernel.org Subject: Re: [RFC] Extend mwait idle to optimize away IPIs when possible Message-ID: <20120215013958.GA24229@zhy> Reply-To: Yong Zhang References: <1328560933-3037-1-git-send-email-venki@google.com> <1328901567.25989.51.camel@laptop> <20120213053410.GB24636@zhy> <1329227537.2293.1.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1329227537.2293.1.camel@twins> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 23 On Tue, Feb 14, 2012 at 02:52:17PM +0100, Peter Zijlstra wrote: > On Mon, 2012-02-13 at 13:34 +0800, Yong Zhang wrote: > > Yeah, most of the things could be shared. Such as the added logic when > > return from idle and the hooks into ttwu_queue_remote() and > > generic_exec_single(). > > > > The thing is, those last two should not have hooks. Yeah, it's general place; and smp_need_ipi() plays well. > Nor am I convinced > anything outside of the arch idle loop should have any. 'idle loop' is the key point :) Thanks, Yong -- 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/