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] [day] [month] [year] [list]
Message-ID: <CAK5ve-+L05fdHzHkL+rcvFk5Y9X5LBnC1kOnFo5FgTop7yysZQ@mail.gmail.com>
Date:	Wed, 7 May 2014 18:57:17 -0700
From:	Bryan Wu <cooloney@...il.com>
To:	Christoph Lameter <cl@...ux.com>
Cc:	lkml <linux-kernel@...r.kernel.org>
Subject: Re: drivers/leds: Replace __get_cpu_var use through this_cpu_ptr

On Mon, May 5, 2014 at 9:48 AM, Christoph Lameter <cl@...ux.com> wrote:
> Would you merge this patch please?
>
>

Sure, I merged it to my my tree
Thanks,
-Bryan

> Use this_cpu_ptr for the address calculation instead of __get_cpu_var.
>
> Acked-by: Bryan Wu <cooloney@...il.com>
> Signed-off-by: Christoph Lameter <cl@...ux.com>
>
> Index: linux/drivers/leds/trigger/ledtrig-cpu.c
> ===================================================================
> --- linux.orig/drivers/leds/trigger/ledtrig-cpu.c       2014-04-14 13:24:54.833360823 -0500
> +++ linux/drivers/leds/trigger/ledtrig-cpu.c    2014-04-14 13:24:54.825360977 -0500
> @@ -47,7 +47,7 @@
>   */
>  void ledtrig_cpu(enum cpu_led_event ledevt)
>  {
> -       struct led_trigger_cpu *trig = &__get_cpu_var(cpu_trig);
> +       struct led_trigger_cpu *trig = this_cpu_ptr(&cpu_trig);
>
>         /* Locate the correct CPU LED */
>         switch (ledevt) {
--
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