Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752798Ab2FEU7T (ORCPT ); Tue, 5 Jun 2012 16:59:19 -0400 Received: from mga14.intel.com ([143.182.124.37]:34787 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750764Ab2FEU7S (ORCPT ); Tue, 5 Jun 2012 16:59:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="108229230" From: Andi Kleen To: Thomas Gleixner Cc: Peter Zijlstra , "Luck\, Tony" , "Yu\, Fenghua" , Rusty Russell , Ingo Molnar , H Peter Anvin , "Siddha\, Suresh B" , "Mallick\, Asit K" , Arjan Dan De Ven , linux-kernel , x86 , linux-pm , "Srivatsa S. Bhat" Subject: Re: [PATCH 0/6] x86/cpu hotplug: Wake up offline CPU via mwait or nmi References: <1338833876-29721-1-git-send-email-fenghua.yu@intel.com> <1338842001.28282.135.camel@twins> <87zk8iioam.fsf@rustcorp.com.au> <1338881971.28282.150.camel@twins> <3E5A0FA7E9CA944F9D5414FEC6C7122007727023@ORSMSX105.amr.corp.intel.com> <1338912565.2749.9.camel@twins> <3E5A0FA7E9CA944F9D5414FEC6C7122007728081@ORSMSX105.amr.corp.intel.com> <1338913190.2749.10.camel@twins> <3908561D78D1C84285E8C5FCA982C28F19300965@ORSMSX104.amr.corp.intel.com> <1338918625.2749.29.camel@twins> Date: Tue, 05 Jun 2012 13:58:08 -0700 In-Reply-To: (Thomas Gleixner's message of "Tue, 5 Jun 2012 21:43:53 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1134 Lines: 32 Thomas Gleixner writes: > > Vs. the interrupt/timer/other crap madness: > > - We really don't want to have an interrupt balancer in the kernel > again, but we need a mechanism to prevent the user space balancer > trainwreck from ruining the power saving party. Why not? I think the kernel is exactly the right place for it. It's essentially a scheduling problem. Scheduling in user space is not a good idea. With MSI-X the drivers just want a static setting. User space shouldn't mess with it. Some of the workarounds for user space messing with it (like that interrupt rmap code) are really bad and just a workaround for doing the scheduling in the wrong place. For dynamic changes it should indeed by part of scheduling, following similar rules, with only high level policy input from userland. -Andi -- ak@linux.intel.com -- Speaking for myself only -- 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/