Re: [PATCH 12/14] sched: make dl_bw a sub-quota of rt_bw
From: Ingo Molnar
Date: Mon Oct 14 2013 - 10:06:27 EST
* Juri Lelli <juri.lelli@xxxxxxxxx> wrote:
> +#ifdef CONFIG_SMP
> + struct dl_bw *dl_b = &cpu_rq(i)->rd->dl_bw;
> +#else
> + struct dl_bw *dl_b = &cpu_rq(i)->dl.dl_bw;
> +#endif
> +#ifdef CONFIG_SMP
> + struct dl_bw *dl_b = &cpu_rq(i)->rd->dl_bw;
> +#else
> + struct dl_bw *dl_b = &cpu_rq(i)->dl.dl_bw;
> +#endif
Btw., this kind of SMP/UP assymetry pattern really sucks. Why not make UP
use the SMP data structure, even if it's degenerate?
Thanks,
Ingo
--
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/