lkml.org 
[lkml]   [2009]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched_rt: don't use first_cpu on cpumask created with cpumask_and.

* Rusty Russell <rusty@rustcorp.com.au> wrote:

> Ingo, please apply to tip/urgent.
>
> cpumask_and() only initializes nr_cpu_ids bits, so the (deprecated)
> first_cpu() might find one of those uninitialized bits if nr_cpu_ids
> is less than NR_CPUS (as it can be for CONFIG_CPUMASK_OFFSTACK).
>
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> ---
> kernel/sched_rt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to tip/sched/urgent, thanks Rusty!

Also, Git sorted out the same-content merge with this commit in cpus4096
just fine:

d38b223: cpumask: reduce stack usage in find_lowest_rq

(this commit is where you backported it from i suspect?)

Ingo


\
 
 \ /
  Last update: 2009-01-31 14:53    [W:0.042 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site