linux hrtimer affinity

Vimal j.vimal at gmail.com
Tue Feb 14 11:06:19 EST 2012


Hi all,

Is there a way to set the affinity of hrtimer callback, so that it
executes on a particular logical CPU?

The reason is that I have a hrtimer callback that executes a tasklet.
 If the timer callback executes on a different CPU than the one it was
enqueued in, then the tasklet is scheduled on the same CPU, which
makes it difficult to reason serialising locks to per-CPU data
structures.

Any ideas?

Thanks,
-- 
Vimal



More information about the Kernelnewbies mailing list