Re: [PATCH 08/14] hrtimer: Allow hrtimer::function() to free the timer

From: Peter Zijlstra
Date: Wed Jun 10 2015 - 02:55:36 EST


On Tue, 2015-06-09 at 23:33 +0200, Oleg Nesterov wrote:
>
> Yes, but wmb() is cheap on x86... Perhaps we can make this code
> "obviously correct" ?

I'll reply to the rest a bit later; got to run some errands first.

The 'problem' of course is ARM/PPC etc.. we would like to keep this
generic code fast, even for the loosely ordered machines.

And wmb() is certainly not cheap for them; although not as bad as a full
barrier.
--
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/