15 Dec, 2009

2 commits

  • Name space cleanup. No functional change.

    Signed-off-by: Thomas Gleixner
    Acked-by: Peter Zijlstra
    Acked-by: David S. Miller
    Acked-by: Ingo Molnar
    Cc: linux-arch@vger.kernel.org

    Thomas Gleixner
     
  • The raw_spin* namespace was taken by lockdep for the architecture
    specific implementations. raw_spin_* would be the ideal name space for
    the spinlocks which are not converted to sleeping locks in preempt-rt.

    Linus suggested to convert the raw_ to arch_ locks and cleanup the
    name space instead of using an artifical name like core_spin,
    atomic_spin or whatever

    No functional change.

    Signed-off-by: Thomas Gleixner
    Acked-by: Peter Zijlstra
    Acked-by: David S. Miller
    Acked-by: Ingo Molnar
    Cc: linux-arch@vger.kernel.org

    Thomas Gleixner
     

21 Jan, 2009

1 commit

  • Impact: cleanup

    Remove byte locks implementation, which was introduced by Jeremy in
    8efcbab6 ("paravirt: introduce a "lock-byte" spinlock implementation"),
    but turned out to be dead code that is not used by any in-kernel
    virtualization guest (Xen uses its own variant of spinlocks implementation
    and KVM is not planning to move to byte locks).

    Signed-off-by: Jiri Kosina
    Signed-off-by: Ingo Molnar

    Jiri Kosina
     

08 Dec, 2008

1 commit

  • these warnings:

    arch/x86/kernel/paravirt-spinlocks.c: In function ‘default_spin_lock_flags’:
    arch/x86/kernel/paravirt-spinlocks.c:12: warning: passing argument 1 of ‘__raw_spin_lock’ from incompatible pointer type
    arch/x86/kernel/paravirt-spinlocks.c: At top level:
    arch/x86/kernel/paravirt-spinlocks.c:11: warning: ‘default_spin_lock_flags’ defined but not used

    showed that the prototype of default_spin_lock_flags() was confused about
    what type spinlocks have.

    the proper type on UP is raw_spinlock_t.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

22 Aug, 2008

1 commit


20 Aug, 2008

1 commit

  • It is useful for a pv_lock_ops backend to know whether interrupts are
    enabled or not in the context a spin_lock is being called. This
    allows it to enable interrupts while spinning, which could be
    particularly helpful when spinning becomes blocking.

    The default implementation just calls the normal spin_lock op,
    ignoring the flags.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge
     

24 Jul, 2008

1 commit

  • ftrace requires certain low-level code, like spinlocks and timestamps,
    to be compiled without -pg in order to avoid infinite recursion. This
    patch splits out the core paravirt spinlocks and the Xen spinlocks
    into separate files which can be compiled without -pg.

    Also do xen/time.c while we're about it. As a result, we can now use
    ftrace within a Xen domain.

    Signed-off-by: Jeremy Fitzhardinge
    Signed-off-by: Ingo Molnar

    Jeremy Fitzhardinge