Messages in this thread | | | Subject | Re: [PATCH v2 1/3] hrtimer: add hrtimer_init_cpu() | From | Eric Dumazet <> | Date | Wed, 12 Sep 2012 16:22:24 +0200 |
| |
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.
| |