From patchwork Mon Mar 17 13:55:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 112 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx20.g.dreamhost.com (caibbdcaaahc.dreamhost.com [208.113.200.72]) by wilcox.dreamhost.com (Postfix) with ESMTP id 198263600B0 for ; Mon, 17 Mar 2014 06:55:16 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14307373) id CF6234088B8A1; Mon, 17 Mar 2014 06:55:15 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx20.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx20.g.dreamhost.com (Postfix) with ESMTPS id B0D7F40672512 for ; Mon, 17 Mar 2014 06:55:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=hUR9H5dDXxBl0xS/C7GRPZl1jQ69r RiX4xZsdMqdyDE3TBIoMG8iPkTzZisyJo519Dt6Pre3LZHLjIcTpuQ7Vmntk8593 A/u1wAonV1r3NKLoTiu7RxK9BciXsRNOrBAx9d8SJdMeus/Evg5VPlp7GZ+sH+D2 U5G2qGLlxm1xvU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=nQ6/Vl2hSqJ9SJ8HSCPySdEJrNU=; b=yEe Aftv/y4IVx7vdBhw06butsVZELu4noTcMxxM9YSwK0fT82j5I9gvNlFfo33QarpI je6VmJAJjAAsw5UiGfXRE4CS/PmZ+ZvO1FB+tvFeK0B8Ow2oy2rzLDnE0ZEvBx4p BXhqxbiVYNkNHe5Ya5Ius+MIktdp0hZk+fI71r7k= Received: (qmail 30358 invoked by alias); 17 Mar 2014 13:55:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 30349 invoked by uid 89); 17 Mar 2014 13:55:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Mon, 17 Mar 2014 19:25:45 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Get rid of __LT_SPINLOCK_INIT Message-ID: <20140317135545.GM1850@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) X-DH-Original-To: glibc@patchwork.siddhesh.in Hi, We got rid of LinuxThreads in 2005, but we didn't remove __LT_SPINLOCK_INIT back then. Do it now. Siddhesh * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]: Remove. diff --git a/nptl/sysdeps/pthread/bits/libc-lockP.h b/nptl/sysdeps/pthread/bits/libc-lockP.h index bacc678..ec20271 100644 --- a/nptl/sysdeps/pthread/bits/libc-lockP.h +++ b/nptl/sysdeps/pthread/bits/libc-lockP.h @@ -78,13 +78,8 @@ typedef pthread_key_t __libc_key_t; CLASS __libc_lock_t NAME = LLL_LOCK_INITIALIZER; # endif #else -# if __LT_SPINLOCK_INIT == 0 -# define __libc_lock_define_initialized(CLASS,NAME) \ +# define __libc_lock_define_initialized(CLASS,NAME) \ CLASS __libc_lock_t NAME; -# else -# define __libc_lock_define_initialized(CLASS,NAME) \ - CLASS __libc_lock_t NAME = PTHREAD_MUTEX_INITIALIZER; -# endif #endif #define __libc_rwlock_define_initialized(CLASS,NAME) \