Re: Considerations on sched APIs under RT patch

From: Peter Zijlstra
Date: Wed Apr 21 2010 - 08:56:50 EST


On Tue, 2010-04-20 at 23:56 +0200, Primiano Tucci wrote:
>
> long sched_setaffinity(pid_t pid, const struct cpumask *in_mask) {
> cpumask_var_t cpus_allowed, new_mask;
> struct task_struct *p;
> int retval;
>
> get_online_cpus();
> --> read_lock(&tasklist_lock);

FWIW recent kernels don't use tasklist_lock there anymore.

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