Re: [PATCH 1/3] kernel.h: Add DO_ONCE statement expression macro
From: H. Peter Anvin
Date: Thu May 21 2009 - 19:37:30 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/