Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754366Ab2JFJLt (ORCPT ); Sat, 6 Oct 2012 05:11:49 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:54480 "EHLO e23smtp08.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940Ab2JFJLq (ORCPT ); Sat, 6 Oct 2012 05:11:46 -0400 Message-ID: <506FF5CA.2090704@linux.vnet.ibm.com> Date: Sat, 06 Oct 2012 17:11:38 +0800 From: Michael Wang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Peter Zijlstra CC: linux-kernel@vger.kernel.org, mingo@redhat.com, svaidy@linux.vnet.ibm.com Subject: Re: [PATCH] sched: rewrite the wrong annotation for select_task_rq_fair() References: <1347956160-6946-1-git-send-email-wangyun@linux.vnet.ibm.com> <506279D3.5030702@linux.vnet.ibm.com> <506FF432.201@linux.vnet.ibm.com> In-Reply-To: <506FF432.201@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit x-cbid: 12100609-5140-0000-0000-0000022B1B4B Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2242 Lines: 73 On 10/06/2012 05:04 PM, Michael Wang wrote: > On 09/26/2012 11:43 AM, Michael Wang wrote: >> On 09/18/2012 04:16 PM, Michael Wang wrote: >>> The annotation for select_task_rq_fair() is wrong since commit c88d5910, it's >>> actually for a removed function. >>> >>> This patch rewrite the wrong annotation to make it correct. >> >> Could I get some comments on this patch? > > Hmm...no comments for a month...is that because there some wrong > understanding while explain the function or I didn't follow the rule? > > Please let me know if I have made any mistake so I could do better in > future ;-) Oh, I just notice Peter is on CC list not the destination...My fault again... Regards, Michael Wang > > Regards, > Michael Wang > >> >> Regards, >> Michael Wang >> >>> >>> Signed-off-by: Michael Wang >>> --- >>> kernel/sched/fair.c | 14 ++++++++------ >>> 1 files changed, 8 insertions(+), 6 deletions(-) >>> >>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >>> index 6b800a1..35eb43a 100644 >>> --- a/kernel/sched/fair.c >>> +++ b/kernel/sched/fair.c >>> @@ -2682,15 +2682,17 @@ done: >>> } >>> >>> /* >>> - * sched_balance_self: balance the current task (running on cpu) in domains >>> - * that have the 'flag' flag set. In practice, this is SD_BALANCE_FORK and >>> - * SD_BALANCE_EXEC. >>> + * select_task_rq_fair: >>> + * Select a suitable CPU for task p, in order to keep load balance. >>> * >>> - * Balance, ie. select the least loaded group. >>> + * sd_flag: >>> + * the domain we try to balance should have "sd_flag" flag set. >>> * >>> - * Returns the target CPU number, or the same CPU if no balancing is needed. >>> + * wake_flags: >>> + * indicate WF_SYNC. >>> * >>> - * preempt must be disabled. >>> + * Must hold p->pi_lock and disable irq before invoke. >>> + * Return the CPU number for task p to running on. >>> */ >>> static int >>> select_task_rq_fair(struct task_struct *p, int sd_flag, int wake_flags) >>> >> > -- 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/