19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

29 Mar, 2012

1 commit


21 Dec, 2010

1 commit

  • The cnt32_to_63 algorithm relies on proper counter data evaluation
    ordering to work properly. This was missing from the provided
    documentation.

    Let's augment the documentation with the missing usage constraint and
    fix the only instance that got it wrong.

    Signed-off-by: Nicolas Pitre
    Acked-by: David Howells
    Signed-off-by: Linus Torvalds

    Nicolas Pitre
     

10 Nov, 2008

1 commit

  • Currently, all existing users of cnt32_to_63() are fine since the CPU
    architectures where it is used don't do read access reordering, and user
    mode preemption is disabled already. It is nevertheless a good idea to
    better elaborate usage requirements wrt preemption, and use an explicit
    memory barrier on SMP to avoid different CPUs accessing the counter
    value in the wrong order. On UP a simple compiler barrier is
    sufficient.

    Signed-off-by: Nicolas Pitre
    Acked-by: Mathieu Desnoyers
    Signed-off-by: Linus Torvalds

    Nicolas Pitre
     

25 Sep, 2008

1 commit