Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756756AbcCaJ3x (ORCPT ); Thu, 31 Mar 2016 05:29:53 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38390 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756177AbcCaJ3t (ORCPT ); Thu, 31 Mar 2016 05:29:49 -0400 Date: Thu, 31 Mar 2016 02:29:14 -0700 From: tip-bot for Yuyang Du Message-ID: Cc: peterz@infradead.org, efault@gmx.de, linux-kernel@vger.kernel.org, hpa@zytor.com, yuyang.du@intel.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org Reply-To: mingo@kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, yuyang.du@intel.com, hpa@zytor.com, efault@gmx.de, linux-kernel@vger.kernel.org, peterz@infradead.org In-Reply-To: <1459292871-22531-1-git-send-email-yuyang.du@intel.com> References: <1459292871-22531-1-git-send-email-yuyang.du@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/fair: Update comments after a variable rename Git-Commit-ID: 1c3de5e19fc96206dd086e634129d08e5f7b1000 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2126 Lines: 50 Commit-ID: 1c3de5e19fc96206dd086e634129d08e5f7b1000 Gitweb: http://git.kernel.org/tip/1c3de5e19fc96206dd086e634129d08e5f7b1000 Author: Yuyang Du AuthorDate: Wed, 30 Mar 2016 07:07:51 +0800 Committer: Ingo Molnar CommitDate: Thu, 31 Mar 2016 10:49:45 +0200 sched/fair: Update comments after a variable rename The following commit: ed82b8a1ff76 ("sched/core: Move the sched_to_prio[] arrays out of line") renamed prio_to_weight to sched_prio_to_weight, but the old name was not updated in comments. Signed-off-by: Yuyang Du Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1459292871-22531-1-git-send-email-yuyang.du@intel.com Signed-off-by: Ingo Molnar --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1fe9916..4bb5ace 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -204,7 +204,7 @@ static void __update_inv_weight(struct load_weight *lw) * OR * (delta_exec * (weight * lw->inv_weight)) >> WMULT_SHIFT * - * Either weight := NICE_0_LOAD and lw \e prio_to_wmult[], in which case + * Either weight := NICE_0_LOAD and lw \e sched_prio_to_wmult[], in which case * we're guaranteed shift stays positive because inv_weight is guaranteed to * fit 32 bits, and NICE_0_LOAD gives another 10 bits; therefore shift >= 22. * @@ -5656,7 +5656,7 @@ static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preemp * W_i,0 = \Sum_j w_i,j (2) * * Where w_i,j is the weight of the j-th runnable task on cpu i. This weight - * is derived from the nice value as per prio_to_weight[]. + * is derived from the nice value as per sched_prio_to_weight[]. * * The weight average is an exponential decay average of the instantaneous * weight: