From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrei Vagin Subject: Re: [PATCHv8 02/34] lib/vdso: make do_hres and do_coarse as __always_inline Date: Sun, 12 Jan 2020 21:27:31 -0800 Message-ID: References: <20191112012724.250792-1-dima@arista.com> <20191112012724.250792-3-dima@arista.com> <878smfa66i.fsf@nanos.tec.linutronix.de> <875zhja59q.fsf@nanos.tec.linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <875zhja59q.fsf@nanos.tec.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org To: Thomas Gleixner Cc: Vincenzo Frascino , Dmitry Safonov , LKML , Dmitry Safonov <0x7f454c46@gmail.com>, Adrian Reber , Andy Lutomirski , Arnd Bergmann , Christian Brauner , Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , Linux Containers , crml , Linux API , X86 ML List-Id: linux-api@vger.kernel.org On Fri, Jan 10, 2020 at 4:02 AM Thomas Gleixner wrote: > > Vincenzo Frascino writes: > > On 1/10/20 11:42 AM, Thomas Gleixner wrote: > >>>> +=C2=BB =C2=BB /*=C2=B7goto=C2=B7allows=C2=B7to=C2=B7avoid=C2=B7extr= a=C2=B7inlining=C2=B7of=C2=B7do_hres.=C2=B7*/ > >>>> +=C2=BB =C2=BB goto=C2=B7out_hres; > >>> > >>> What is the performance impact of "goto out_hres"? > >> > >> On x86 it's invisible at least in my limited testing. > > > > On arm64 as well based on mine as well. Shall we keep the code more rea= dable > > here (without goto)? > > The delta patch below makes it readable again and also avoids the double > inlining. Quick testing shows no difference. My tests show no difference too and the code looks more readable. Thanks! > > Thanks, > > tglx