Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756610AbYKKPWT (ORCPT ); Tue, 11 Nov 2008 10:22:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755935AbYKKPWH (ORCPT ); Tue, 11 Nov 2008 10:22:07 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:47609 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755470AbYKKPWF (ORCPT ); Tue, 11 Nov 2008 10:22:05 -0500 Date: Tue, 11 Nov 2008 20:51:26 +0530 From: Srivatsa Vaddagiri To: Gregory Haskins Cc: Peter Zijlstra , Vaidyanathan Srinivasan , Linux Kernel , Suresh B Siddha , Venkatesh Pallipadi , Ingo Molnar , Dipankar Sarma , Balbir Singh , Gautham R Shenoy , Andi Kleen , David Collier-Brown , Tim Connors , Max Krasnyansky Subject: Re: [RFC PATCH v3 3/5] sched: nominate preferred wakeup cpu Message-ID: <20081111152126.GF3593@linux.vnet.ibm.com> Reply-To: vatsa@in.ibm.com References: <20081110181526.562.69941.stgit@drishya.in.ibm.com> <20081110183326.562.37718.stgit@drishya.in.ibm.com> <1226411019.7685.1767.camel@twins> <491991BE.9080405@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491991BE.9080405@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 25 On Tue, Nov 11, 2008 at 09:07:58AM -0500, Gregory Haskins wrote: > > Would it make sense to place the preferred_wakeup_cpu stuff in the > > root_domain structure we already have? > > > > From the description, this is exactly what the root-domains were created > to solve. > > Vaidyanathan, just declare your object in "struct root_domain" and > initialize it in init_rootdomain() in kernel/sched.c, and then access it > via rq->rd to take advantage of this infrastructure. It will > automatically follow any partitioning that happens to be configured. If I understand correctly, we may want to have more than one preferred cpu in a given sched domain, taking into account node topology i.e if a given sched domain encompasses two nodes, then we may like to designate 2 preferred wakeup_cpu's, one per node. If that is the case, then root_domain may not be of use here? - vatsa -- 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/