Re: [PATCH 1/1] timer: permit statically-declared work withdeferrable timers

From: Artem Bityutskiy
Date: Fri Oct 01 2010 - 02:23:17 EST


On Thu, 2010-09-30 at 21:26 +0200, ext Phil Carmody wrote:
> Currently, you have to just define a delayed_work uninitialised, and then
> initialise it before first use. That's a tad clumsy. At risk of playing
> mind-games with the compiler, fooling it into doing pointer arithmetic
> with compile-time-constants, this lets clients properly initialise delayed
> work with deferrable timers statically.
>
> This patch was inspired by the issues which lead Artem Bityutskiy
> to commit 8eab945c5616fc984e97b922d6a2559be93f39a1.
>
> Signed-off-by: Phil Carmody <ext-phil.2.carmody@xxxxxxxxx>
Acked-by: Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@xxxxxxxxx>

--
Best Regards,
Artem Bityutskiy (ÐÑÑÑÐ ÐÐÑÑÑÐÐÐ)

--
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/