linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/3] Introduce and use DO_ONCE statement expression macro
@ 2009-05-22  4:27 Joe Perches
  2009-05-22  4:27 ` [PATCH V2 1/3] kernel.h: Add " Joe Perches
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Joe Perches @ 2009-05-22  4:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: cpufreq, Dave Jones, Greg Kroah-Hartman, H. Peter Anvin,
	Ingo Molnar, x86, Len Brown, Mike Travis, Rusty Russell,
	Thomas Gleixner, Venkatesh Pallipadi, Alan Cox

The printk_once macro in kernel.h is limited to printk

This generalizes the functionality of printk_once and
allows statements like DO_ONCE(pr_info("foo\n"))
and DO_ONCE(initialize(foo));

Uses atomic test_and_set_bit

Joe Perches (3):
  kernel.h: Add DO_ONCE statement expression macro
  arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c: Use DO_ONCE & spelling fix
  kernel.h: Remove unused printk_once

 arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c |    4 ++--
 include/linux/kernel.h                     |   26 +++++++++++---------------
 2 files changed, 13 insertions(+), 17 deletions(-)


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

end of thread, other threads:[~2009-05-22  7:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-22  4:27 [PATCH V2 0/3] Introduce and use DO_ONCE statement expression macro Joe Perches
2009-05-22  4:27 ` [PATCH V2 1/3] kernel.h: Add " Joe Perches
2009-05-22  4:27 ` [PATCH V2 2/3] arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c: Use DO_ONCE & spelling fix Joe Perches
2009-05-22  4:27 ` [PATCH V2 3/3] kernel.h: Remove unused printk_once Joe Perches
2009-05-22  5:26 ` [PATCH V2 0/3] Introduce and use DO_ONCE statement expression macro Al Viro
2009-05-22  5:39   ` Joe Perches
2009-05-22  7:01     ` Al Viro
2009-05-22  7:44       ` Ingo Molnar

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).