Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753944Ab3CRP5k (ORCPT ); Mon, 18 Mar 2013 11:57:40 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:35937 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682Ab3CRP5i (ORCPT ); Mon, 18 Mar 2013 11:57:38 -0400 MIME-Version: 1.0 In-Reply-To: References: <9f0fd16f792b9f9b399a4c91c98de37c56067d47.1363617402.git.viresh.kumar@linaro.org> Date: Mon, 18 Mar 2013 16:57:36 +0100 Message-ID: Subject: Re: [PATCH V3 1/7] sched: Create sched_select_cpu() to give preferred CPU for power saving From: Frederic Weisbecker To: Viresh Kumar Cc: pjt@google.com, paul.mckenney@linaro.org, tglx@linutronix.de, tj@kernel.org, suresh.b.siddha@intel.com, venki@google.com, mingo@redhat.com, peterz@infradead.org, rostedt@goodmis.org, linaro-kernel@lists.linaro.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, Arvind.Chauhan@arm.com, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 29 2013/3/18 Viresh Kumar : > On Mon, Mar 18, 2013 at 9:09 PM, Frederic Weisbecker wrote: >> 2013/3/18 Viresh Kumar : > >>> +static inline int sched_select_cpu(unsigned int sd_flags) >>> +{ >>> + return raw_smp_processor_id(); >> >> I feel this should be symetric with the requirement of having >> preemption disabled as in the CONFIG_NO_HZ version. This should be >> smp_processor_id(). > > Yes, my fault. > >>> +int sched_select_cpu(unsigned int sd_flags) >> >> It would be nice to have some more precise naming. sched_select_busy_cpu() ? > > You are correct that name can be improved but busy may give it a different > meaning. Maybe sched_select_non_idle_cpu()? That works too yeah. Thanks. -- 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/