From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbdJFIvw (ORCPT ); Fri, 6 Oct 2017 04:51:52 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:37549 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbdJFIvv (ORCPT ); Fri, 6 Oct 2017 04:51:51 -0400 Date: Fri, 6 Oct 2017 10:51:49 +0200 From: Sebastian Andrzej Siewior To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Jens Axboe , tglx@linutronix.de Subject: Re: [PATCH 1/2] sched/rt: Add a helper to test for a RT task Message-ID: <20171006085149.fw4g4cds3k2eizkh@linutronix.de> References: <20171004154901.26904-1-bigeasy@linutronix.de> <20171006081937.eshxl36hitrd4j22@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171006081937.eshxl36hitrd4j22@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017-10-06 10:19:37 [+0200], Peter Zijlstra wrote: > > --- a/include/linux/sched/rt.h > > +++ b/include/linux/sched/rt.h > > @@ -17,6 +17,17 @@ static inline int rt_task(struct task_struct *p) > > return rt_prio(p->prio); > > } > > > > +static inline bool task_is_elevated(struct task_struct *tsk) > > Would you be terribly upset if I rename that? I'm thinking something > like task_is_realtime() better reflects what it does. no, not at all. Sebastian