Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754515Ab1EXIRm (ORCPT ); Tue, 24 May 2011 04:17:42 -0400 Received: from mail-gy0-f174.google.com ([209.85.160.174]:40425 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754102Ab1EXIRk convert rfc822-to-8bit (ORCPT ); Tue, 24 May 2011 04:17:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=if835UkoczNOGDJer2+OYPS8Y2Ugs+cfR7oXKmD3Xs1tmqYcpNpNjJHSIBEd6cCeKv /LgRNAccsZPbkMfcx4RWwhQDsbVc0fj3CFjtdQDUCvi0gMz7lTB9OxHfQP4YpCUIekkW ihjIBBl93YSINwpQMB0e2iJyZVam3tLdA0ip4= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 24 May 2011 16:17:39 +0800 Message-ID: Subject: Re: [PATCH] sched: remove noop in next_prio() From: Yong Zhang To: Hillf Danton Cc: LKML , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Mike Galbraith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1149 Lines: 36 On Sat, May 21, 2011 at 10:19 PM, Hillf Danton wrote: > When computing the next priority for a given run-queue, the check for > RT priority of the task determined by the pick_next_highest_task_rt() > function could be removed, since only RT task is returned by the > function. > > Signed-off-by: Hillf Danton Yup, it's true. Reviewed-by: Yong Zhang > --- > > --- a/kernel/sched_rt.c 2011-04-27 11:48:50.000000000 +0800 > +++ b/kernel/sched_rt.c 2011-05-21 22:10:34.000000000 +0800 > @@ -670,7 +670,7 @@ static inline int next_prio(struct rq *r >  { >        struct task_struct *next = pick_next_highest_task_rt(rq, rq->cpu); > > -       if (next && rt_prio(next->prio)) > +       if (next) >                return next->prio; >        else >                return MAX_RT_PRIO; > -- Only stand for myself -- 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/