public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/2] use asm() for atomic_{read|set}
@ 2007-08-14 22:38 Sebastian Siewior
  2007-08-14 22:38 ` [patch 1/2] i386: use asm() like the other atomic operations already do Sebastian Siewior
  2007-08-14 22:38 ` [patch 2/2] x86_64: " Sebastian Siewior
  0 siblings, 2 replies; 14+ messages in thread
From: Sebastian Siewior @ 2007-08-14 22:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andi Kleen

I converted i386+x86-64. Compiled, booted and played for a while. The
description of both patches contains the file size of four kernel builds:
- "normal" is 28e8351ac22de25034e048c680014ad824323c65 as it
- "inline asm" is with this patch
- "inline volatile" is *(volatile int *)&(v)->counter as a static inline
  function
- "volatile" is *(volatile int *)&(v)->counter as a #define macro

I hope I don't encourage anyone to use macros over inline functions.

Sebastian
-- 


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [patch 0/2] use asm() for atomic_{read|set} (shot 2)
@ 2007-08-15 20:54 Sebastian Siewior
  2007-08-15 20:54 ` [patch 1/2] i386: use asm() like the other atomic operations already do Sebastian Siewior
  0 siblings, 1 reply; 14+ messages in thread
From: Sebastian Siewior @ 2007-08-15 20:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andi Kleen, Chris Snook

Diff to last post:
- no __*__ functions used.
- no white space fixes.

I converted i386+x86-64 arch. The description of both patches contains the 
file size of four kernel builds:
- "normal" is 28e8351ac22de25034e048c680014ad824323c65 as it
- "inline asm" is with this patch
- "inline volatile" is *(volatile int *)&(v)->counter as a static inline
  function
- "volatile" is *(volatile int *)&(v)->counter as a #define macro

Sebastian
-- 


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

end of thread, other threads:[~2007-08-17  0:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 22:38 [patch 0/2] use asm() for atomic_{read|set} Sebastian Siewior
2007-08-14 22:38 ` [patch 1/2] i386: use asm() like the other atomic operations already do Sebastian Siewior
2007-08-15  0:20   ` Andi Kleen
2007-08-15  7:04     ` Sebastian Siewior
2007-08-15  8:40     ` Herbert Xu
2007-08-15 13:02       ` Satyam Sharma
2007-08-15 13:45         ` Sebastian Siewior
2007-08-15 17:02       ` Chris Snook
2007-08-15 23:44         ` Herbert Xu
2007-08-16  1:37           ` Nick Piggin
2007-08-16 19:23           ` Chris Snook
2007-08-17  0:04             ` Herbert Xu
2007-08-14 22:38 ` [patch 2/2] x86_64: " Sebastian Siewior
  -- strict thread matches above, loose matches on Subject: below --
2007-08-15 20:54 [patch 0/2] use asm() for atomic_{read|set} (shot 2) Sebastian Siewior
2007-08-15 20:54 ` [patch 1/2] i386: use asm() like the other atomic operations already do Sebastian Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox