From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752797AbaKDXJo (ORCPT ); Tue, 4 Nov 2014 18:09:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2888 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752037AbaKDXJm (ORCPT ); Tue, 4 Nov 2014 18:09:42 -0500 Date: Wed, 5 Nov 2014 00:09:41 +0100 From: Oleg Nesterov To: Andy Lutomirski Cc: Jan Beulich , Ingo Molnar , Linus Torvalds , "H. Peter Anvin" , Sebastian Lackner , "linux-kernel@vger.kernel.org" , Chuck Ebbert , Anish Bhatt , Thomas Gleixner , "linux-tip-commits@vger.kernel.org" Subject: Re: [tip:x86/asm] sched/x86_64: Don't save flags on context switch Message-ID: <20141104230941.GA30569@redhat.com> References: <20141103214712.GA8711@redhat.com> <20141103215837.GB8711@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Didn't notice this part yesterday... On 11/03, Andy Lutomirski wrote: > > On Mon, Nov 3, 2014 at 1:58 PM, Oleg Nesterov wrote: > > On 11/03, Oleg Nesterov wrote: > >> > >> On 11/03, Andy Lutomirski wrote: > >> > > >> > Also, what's with 'jmp exit_intr' at the end of retint_kernel? Why > >> > isn't that 'jmp retint_kernel'? > >> > >> Even better, why not "jmp retint_restore_args" ? > >> > >> preempt_schedule_irq() checks need_resched() and returns with irqs > >> disabled, not need to to recheck test_preempt_need_resched() ? > > Seems reasonable to me. Want to write the patch? OK, will try to do tomorrow. And it seems that we can do a bit more, although I need to recheck. retint_kernel() no longer needs rcx == threadinfo, it doesn't check TIF_NEED_RESCHED. This means we can shift/remove some GET_THREAD_INFO()'s under retint_check. Oleg.