Re: [patch] 2.6.6-rc2 Allow architectures to reenable interrupts on contended spinlocks

From: Benjamin Herrenschmidt (benh_at_kernel.crashing.org)
Date: 04/27/04

  • Next message: Grzegorz Piotr Jaskiewicz: "Re: [PATCH] Blacklist binary-only modules lying about their license"
    To: Keith Owens <kaos@sgi.com>
    Date:	Tue, 27 Apr 2004 16:54:11 +1000
    
    

    > +#ifdef __HAVE_ARCH_RAW_SPIN_LOCK_FLAGS
    > +#define _raw_spin_lock(lock) _raw_spin_lock_flags(lock, 0)
    > +#else
    > +#define _raw_spin_lock_flags(lock, flags) do { (void)flags; _raw_spin_lock(lock); } while(0)
    > +#endif

    Looks good, except as paulus noted that using 0 for flags in the
    _raw_spin_lock() case is wrong, since 0 is a valid flags value
    for some archs that could mean anything...

    Ben.

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


  • Next message: Grzegorz Piotr Jaskiewicz: "Re: [PATCH] Blacklist binary-only modules lying about their license"

    Relevant Pages

    • Re: 2.6.9-rc1-mm4 sparc reiser4 build broken - undefined atomic_sub_and_test
      ... On Mon, 13 Sep 2004, Hugh Dickins wrote: ... atomic_sub_and_testallows some archs to ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH 4/4] Hugetlb: Copy on Write support
      ... >> for some archs. ... > since there's no need for the macro at all. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [patch 1/1] Uml: add generic ptrace requests
      ... When we don't know how to handle ptracecalls, call the arch-independent ... ptrace_request like i386 (and I guess other archs) do, ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • RE: [PATCH x86_64]: Setup PER_LINUX32 on x86_64
      ... To distinguish 32-bit and native 64-bit app on x86-64(and some other archs), ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [PATCH] fix missing includes for 2.6.14-git11
      ... Include fixes for 2.6.14-git11. ... Probably more to come since I haven't yet checked the other archs. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)