lkml.org 
[lkml]   [2012]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 1/3] hrtimer: add hrtimer_init_cpu()
From
Date
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.





\
 
 \ /
  Last update: 2012-09-12 17:01    [W:0.094 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site