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    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site