[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18734a4944e47952b7ad3e10a36c902392bdaa91.camel@surriel.com>
Date: Fri, 24 Oct 2025 17:36:06 -0400
From: Rik van Riel <riel@...riel.com>
To: Xie Yuanbin <qq570070308@...il.com>, linux@...linux.org.uk,
mathieu.desnoyers@...icios.com, paulmck@...nel.org, pjw@...nel.org,
palmer@...belt.com, aou@...s.berkeley.edu, alex@...ti.fr,
hca@...ux.ibm.com, gor@...ux.ibm.com, agordeev@...ux.ibm.com,
borntraeger@...ux.ibm.com, svens@...ux.ibm.com, davem@...emloft.net,
andreas@...sler.com, tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
dave.hansen@...ux.intel.com, hpa@...or.com, luto@...nel.org,
peterz@...radead.org, acme@...nel.org, namhyung@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com, jolsa@...nel.org,
irogers@...gle.com, adrian.hunter@...el.com, anna-maria@...utronix.de,
frederic@...nel.org, juri.lelli@...hat.com, vincent.guittot@...aro.org,
dietmar.eggemann@....com, rostedt@...dmis.org, bsegall@...gle.com,
mgorman@...e.de, vschneid@...hat.com, thuth@...hat.com,
akpm@...ux-foundation.org, david@...hat.com, lorenzo.stoakes@...cle.com,
segher@...nel.crashing.org, ryan.roberts@....com,
max.kellermann@...os.com, urezki@...il.com, nysal@...ux.ibm.com
Cc: x86@...nel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-s390@...r.kernel.org, sparclinux@...r.kernel.org,
linux-perf-users@...r.kernel.org, will@...nel.org
Subject: Re: [PATCH 2/3] Provide and use an always inline version of
finish_task_switch
On Sat, 2025-10-25 at 02:35 +0800, Xie Yuanbin wrote:
> finish_task_switch is called during context switching,
> inlining it can bring some performance benefits.
>
> Add an always inline version `finish_task_switch_ainline` to be
> called
> during context switching, and keep the original version for being
> called
> elsewhere, so as to take into account the size impact.
Does that actually work, or does the compiler
still inline some of those "non-inlined" versions,
anyway?
Also, what kind of performance improvement
have you measured with these changes?
--
All Rights Reversed.
Powered by blists - more mailing lists