Re: [PATCH v2 1/3] hrtimer: add hrtimer_init_cpu()

From: Eric Dumazet
Date: Wed Sep 12 2012 - 10:22:23 EST


On Wed, 2012-09-12 at 16:13 +0200, Stephane Eranian wrote:

> void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id,
> enum hrtimer_mode mode)
> {
> debug_object_init_on_stack(timer, &hrtimer_debug_descr);
> - __hrtimer_init(timer, clock_id, mode);
> + __hrtimer_init(smp_processor_id(), timer, clock_id, mode);
> }

This assumes caller is in non preemptable context.



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