Re: [PATCH] x86/asm: Use asm_inline() instead of asm() in amd_clear_divider()
From: Ingo Molnar
Date: Fri Mar 14 2025 - 06:18:04 EST
* Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> * Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> > Sorry but this doesn't justify this churn. There's nothing
> > quantifyingly palpable here to warrant this.
>
> I disagree, asm() is a known-bad inlining interface for fundamentally
> single-instruction inlines like this one, and there's various
> performance benefits to cleaning this up, as evidenced by the benchmark
> numbers and analysis in this pending commit:
>
> 9628d19e91f1 ("x86/locking/atomic: Improve performance by using asm_inline() for atomic locking instructions")
Here's a link for those who'd like to view this via the web:
https://lore.kernel.org/all/174188884263.14745.1542926632284353047.tip-bot2@tip-bot2/
Thanks,
Ingo