Messages in this thread |  | | | Date | Thu, 21 May 2009 16:36:41 -0700 | | From | "H. Peter Anvin" <> | | Subject | Re: [PATCH 1/3] kernel.h: Add DO_ONCE statement expression macro |
| |
Joe Perches wrote: > > Add a DO_ONCE statement expression analogous to printk_once > that executes any arbitrary statement exactly once. >
If you're truly going to make that guarantee you should use an atomic test and set.
-hpa
|  |