Re: [PATCH 03/14] sched: SCHED_DEADLINE structures & implementation.

From: Peter Zijlstra
Date: Mon Oct 14 2013 - 07:52:05 EST


On Mon, Oct 14, 2013 at 12:43:35PM +0200, Juri Lelli wrote:
> +static void set_cpus_allowed_dl(struct task_struct *p,
> + const struct cpumask *new_mask)
> +{
> + int weight = cpumask_weight(new_mask);
> +
> + BUG_ON(!dl_task(p));
> +
> + cpumask_copy(&p->cpus_allowed, new_mask);
> + p->dl.nr_cpus_allowed = weight;
> +}

This seems identical so the default in do_set_cpus_allowed(); can we
leave this function out and use the default?
--
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/