Re: [patch 13/23] plist: Make plist debugging raw_spinlock aware

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 06, 2009 at 06:02:57PM -0000, Thomas Gleixner wrote:
> plists are used with spinlocks and raw_spinlocks. Change the plist
> debugging to handle both types.
> 
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> ---
>  include/linux/plist.h |   43 +++++++++++++++++++++++++++++++++++++------
>  kernel/futex.c        |    6 +++---
>  lib/plist.c           |    8 +++++---
>  3 files changed, 45 insertions(+), 12 deletions(-)
> 
> Index: linux-2.6-tip/include/linux/plist.h
> ===================================================================
> --- linux-2.6-tip.orig/include/linux/plist.h
> +++ linux-2.6-tip/include/linux/plist.h
> @@ -81,7 +81,8 @@ struct plist_head {
>  	struct list_head prio_list;
>  	struct list_head node_list;
>  #ifdef CONFIG_DEBUG_PI_LIST
> -	spinlock_t *lock;
> +	raw_spinlock_t *rawlock;
> +	spinlock_t *spinlock;
>  #endif
>  };



This could be a union probably, as we don't use both at the
same time?

--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux