Re: [PATCH v5 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-20 Thread Peter Zijlstra
On Tue, Jun 19, 2018 at 12:48:54PM -0700, Nadav Amit wrote: > diff --git a/arch/x86/include/asm/jump_label.h > b/arch/x86/include/asm/jump_label.h > index 8c0de4282659..f321a50e6727 100644 > --- a/arch/x86/include/asm/jump_label.h > +++ b/arch/x86/include/asm/jump_label.h > @@ -108,6 +99,26 @@ str

[PATCH v5 9/9] x86: jump-labels: use macros instead of inline assembly

2018-06-19 Thread Nadav Amit
Use assembly macros for jump-labels and call them from inline assembly. This not only makes the code more readable, but also improves compilation decision, specifically inline decisions which GCC base on the number of new lines in inline assembly. As a result the code size is slightly increased.