lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 15 May 2012 14:27:25 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Vincent Guittot <vincent.guittot@...aro.org>
Cc:	panto@...oniou-consulting.com, smuckle@...cinc.com,
	Juri Lelli <juri.lelli@...il.com>, mingo@...e.hu,
	linaro-sched-sig@...ts.linaro.org, rostedt@...dmis.org,
	tglx@...utronix.de, geoff@...radead.org, efault@....de,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: Plumbers: Tweaking scheduler policy micro-conf RFP

On Tue, 2012-05-15 at 14:23 +0200, Peter Zijlstra wrote:
> -#else /*  (CONFIG_SCHED_MC || CONFIG_SCHED_SMT) */
>  static inline int find_new_ilb(int call_cpu)
>  {
>         return nr_cpu_ids;
>  }
> -#endif 

That was missing a hunk...

--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4524,6 +4524,11 @@ static struct {
 
 static inline int find_new_ilb(int call_cpu)
 {
+       int ilb = cpumask_first(nohz.idle_cpus_mask);
+
+       if (ilb < nr_cpu_ids && idle_cpu(ilb))
+               return ilb;
+
        return nr_cpu_ids;
 }


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ