From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753229AbcBVDhU (ORCPT ); Sun, 21 Feb 2016 22:37:20 -0500 Received: from mail113-249.mail.alibaba.com ([205.204.113.249]:60714 "EHLO us-alimail-mta1.hst.scl.en.alidc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753162AbcBVDhR (ORCPT ); Sun, 21 Feb 2016 22:37:17 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01l07380;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_----4Xdvdj7_1456112176; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "Mike Galbraith" Cc: "'Sebastian Andrzej Siewior'" , "'Thomas Gleixner'" , "'LKML'" , "'linux-rt-users'" Subject: Re: [patch] sched,rt: __always_inline preemptible_lazy() Date: Mon, 22 Feb 2016 11:36:16 +0800 Message-ID: <00a501d16d22$30045140$900cf3c0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdFtIZerJ6Z7U+IfRbSmr+VwI1/nQA== Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > homer: # nm kernel/sched/core.o|grep preemptible_lazy > 00000000000000b5 t preemptible_lazy > > echo wakeup_rt > current_tracer ==> Welcome to infinity. > > Signed-off-bx: Mike Galbraith > --- Fat finger? BTW, would you please make a better description of the problem this patch is trying to address/fix? Hillf > kernel/sched/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -3469,7 +3469,7 @@ static void __sched notrace preempt_sche > * set by a RT task. Oterwise we try to avoid beeing scheduled out as long as > * preempt_lazy_count counter >0. > */ > -static int preemptible_lazy(void) > +static __always_inline int preemptible_lazy(void) > { > if (test_thread_flag(TIF_NEED_RESCHED)) > return 1;