linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] x86: Clean up percpu operations
@ 2020-05-17 15:29 Brian Gerst
  2020-05-17 15:29 ` [PATCH 1/7] x86/percpu: Introduce size abstraction macros Brian Gerst
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Brian Gerst @ 2020-05-17 15:29 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, H . Peter Anvin,
	Andy Lutomirski, Peter Zijlstra, Nick Desaulniers, Brian Gerst

The core percpu operations already have a switch on the width of the
data type, which resulted in an extra amount of dead code being
generated with the x86 operations having another switch.  This patch set
rewrites the x86 ops to remove the switch.  Additional cleanups are to
use named assembly operands, and to cast variables to the width used in
the assembly to make Clang happy.

Brian Gerst (7):
  x86/percpu: Introduce size abstraction macros
  x86/percpu: Clean up percpu_to_op()
  x86/percpu: Clean up percpu_from_op()
  x86/percpu: Clean up percpu_add_op()
  x86/percpu: Clean up percpu_add_return_op()
  x86/percpu: Clean up percpu_xchg_op()
  x86/percpu: Clean up percpu_cmpxchg_op()

 arch/x86/include/asm/percpu.h | 447 ++++++++++++----------------------
 1 file changed, 158 insertions(+), 289 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-05-26 17:54 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17 15:29 [PATCH 0/7] x86: Clean up percpu operations Brian Gerst
2020-05-17 15:29 ` [PATCH 1/7] x86/percpu: Introduce size abstraction macros Brian Gerst
2020-05-18 23:48   ` Nick Desaulniers
2020-05-17 15:29 ` [PATCH 2/7] x86/percpu: Clean up percpu_to_op() Brian Gerst
2020-05-18 21:15   ` Nick Desaulniers
2020-05-19  3:38     ` Brian Gerst
2020-05-20 17:26       ` Nick Desaulniers
2020-05-21 13:06         ` Brian Gerst
2020-05-26 17:54           ` Nick Desaulniers
2020-05-17 15:29 ` [PATCH 3/7] x86/percpu: Clean up percpu_from_op() Brian Gerst
2020-05-18 21:27   ` Nick Desaulniers
2020-05-17 15:29 ` [PATCH 4/7] x86/percpu: Clean up percpu_add_op() Brian Gerst
2020-05-17 19:18   ` kbuild test robot
2020-05-17 20:04   ` kbuild test robot
2020-05-18 23:42   ` Nick Desaulniers
2020-05-17 15:29 ` [PATCH 5/7] x86/percpu: Clean up percpu_add_return_op() Brian Gerst
2020-05-18 22:46   ` Nick Desaulniers
2020-05-18 23:45     ` Brian Gerst
2020-05-17 15:29 ` [PATCH 6/7] x86/percpu: Clean up percpu_xchg_op() Brian Gerst
2020-05-18 22:15   ` Nick Desaulniers
2020-05-17 15:29 ` [PATCH 7/7] x86/percpu: Clean up percpu_cmpxchg_op() Brian Gerst
2020-05-18 22:28   ` Nick Desaulniers
2020-05-18 19:19 ` [PATCH 0/7] x86: Clean up percpu operations Nick Desaulniers
2020-05-18 23:54   ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).