Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

From: Linus Torvalds
Date: Fri Nov 30 2018 - 14:46:17 EST


On Fri, Nov 30, 2018 at 10:39 AM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> AFAICT, all the other proposed options seem to have major issues.

I still absolutely detest this patch, and in fact it got worse from
the test of the config variable.

Honestly, the entry code being legible and simple is more important
than the extra cycle from branching to a trampoline for static calls.

Just don't do the inline case if it causes this much confusion.

Linus