lkml.org 
[lkml]   [2012]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[patch] BFS 421: fix resched_closest_idle
    From
    Frankly it is not fix, but operating cpu_idle_map is not sane if idle_cpus is
    not checked first, according to its define.

    Btw, the helper will be removed soon as we no longer maintain the sticky bit.


    --- a/kernel/sched/bfs.c Wed Jun 6 20:04:50 2012
    +++ b/kernel/sched/bfs.c Wed Jun 6 20:06:38 2012
    @@ -1055,6 +1055,8 @@ resched_closest_idle(struct rq *rq, int
    {
    cpumask_t tmpmask;

    + if (!grq.idle_cpus)
    + return;
    cpus_and(tmpmask, p->cpus_allowed, grq.cpu_idle_map);
    cpu_clear(cpu, tmpmask);
    if (cpus_empty(tmpmask))
    --

    \
     
     \ /
      Last update: 2012-06-06 16:01    [W:0.057 / U:34.580 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site