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:	Thu, 28 Mar 2013 21:11:36 +0530
From:	"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>
To:	Thomas Gleixner <tglx@...utronix.de>
CC:	LKML <linux-kernel@...r.kernel.org>, linux-arch@...r.kernel.org,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Rusty Russell <rusty@...tcorp.com.au>,
	Paul McKenney <paulmck@...ux.vnet.ibm.com>,
	Ingo Molnar <mingo@...e.hu>,
	Peter Zijlstra <peterz@...radead.org>,
	Magnus Damm <magnus.damm@...il.com>,
	Chris Metcalf <cmetcalf@...era.com>
Subject: Re: [patch 31/34] tile: Use generic idle loop

On 03/22/2013 03:23 AM, Thomas Gleixner wrote:
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> Cc: Chris Metcalf <cmetcalf@...era.com>
> ---
>  arch/tile/kernel/process.c |   61 ++++-----------------------------------------
>  arch/tile/kernel/smpboot.c |    2 -
>  2 files changed, 7 insertions(+), 56 deletions(-)
> 
> Index: linux-2.6/arch/tile/kernel/process.c
> ===================================================================
> --- linux-2.6.orig/arch/tile/kernel/process.c
> +++ linux-2.6/arch/tile/kernel/process.c
> @@ -40,13 +40,11 @@
>  #include <arch/abi.h>
>  #include <arch/sim_def.h>
> 
> -
>  /*
>   * Use the (x86) "idle=poll" option to prefer low latency when leaving the
>   * idle loop over low power while in the idle loop, e.g. if we have
>   * one thread per core and we want to get threads out of futex waits fast.
>   */
> -static int no_idle_nap;
>  static int __init idle_setup(char *str)
>  {
>  	if (!str)
> @@ -54,64 +52,17 @@ static int __init idle_setup(char *str)
> 
>  	if (!strcmp(str, "poll")) {
>  		pr_info("using polling idle threads.\n");
> -		no_idle_nap = 1;
> +		cpu_idle_poll_ctrl(true);
>  	} else if (!strcmp(str, "halt"))
> -		no_idle_nap = 0;
> -	else
> -		return -1;
> -
> -	return 0;
> +		return 0;
> +	return -1;
>  }
>  early_param("idle", idle_setup);
>

That doesn't look quite right, since it returns -1 (instead of 0) when
str == poll.

Regards,
Srivatsa S. Bhat

--
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