From patchwork Tue Jan 15 16:48:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot for Dave Martin X-Patchwork-Id: 1979641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 767603FE1F for ; Tue, 15 Jan 2013 16:52:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tv9gr-0004os-4V; Tue, 15 Jan 2013 16:48:45 +0000 Received: from mail-bk0-f44.google.com ([209.85.214.44]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tv9go-0004nt-AI for linux-arm-kernel@lists.infradead.org; Tue, 15 Jan 2013 16:48:42 +0000 Received: by mail-bk0-f44.google.com with SMTP id w11so200326bku.17 for ; Tue, 15 Jan 2013 08:48:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=uGhMIIDt0giLZ4wvStL/Qy6c5PzLy9J/7iJZPMi+yA8=; b=jMAmep16gdqW6qvQ70sOEu6WyWnePfVObZ1ZBFK3Eoro/8uIGdhDcJkj/M3PWDXEP9 hzGalgCnpIbhupCjXukwOhM1dU53CZ2y/fVoO/I2z934Tyw7LVwbH+87nVem8u1Eznfg 1+4LbWLagEkP+uuHqCreYmAan66MCvDf8lZZhql0FpQl1erTBt9vQ62ZGTzIuRMOqP2F O+k/5+R55TvLifJMLsQao/z00ZadafUUMQHLVs+P3Obpb2rl3hvBkH4F9KbUADeozKVd YeioeWoG0EX+b2qgRHp3l1i4a+4EwP7JUrvCcVBjqk0KpRFNZZRlPEw1LXc4lm5t/FZb QQYw== X-Received: by 10.204.129.66 with SMTP id n2mr41793487bks.94.1358268519912; Tue, 15 Jan 2013 08:48:39 -0800 (PST) Received: from e103592.peterhouse.linaro.org (fw-lnat.cambridge.arm.com. [217.140.96.63]) by mx.google.com with ESMTPS id 18sm13338796bkv.0.2013.01.15.08.48.38 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 15 Jan 2013 08:48:38 -0800 (PST) From: Dave Martin To: Nicolas Pitre Subject: [RFC PATCH 1/4] ARM: b.L: Remove C declarations for vlocks Date: Tue, 15 Jan 2013 16:48:15 +0000 Message-Id: <1358268498-8086-2-git-send-email-dave.martin@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1358268498-8086-1-git-send-email-dave.martin@linaro.org> References: <1358268498-8086-1-git-send-email-dave.martin@linaro.org> X-Gm-Message-State: ALoCoQlAc9s1OhjD24ljXMG9VYFN/VrgDNiRy8An7Dq7stwjjU7VeRz3GDzCWC+ODrVUEyF9sqXQ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130115_114842_538337_D22A46A7 X-CRM114-Status: GOOD ( 16.40 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.44 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Achin Gupta , Will Deacon , Dave Martin , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Vlocks are only useful in very specialised situations, so the precence of a C header file is more confusing than helpful. All current use of vlocks, including allocation of space for the lock structures themselves, is done in assembler. This patch removes the C interface, so that people are not tempted to use vlocks when they shouldn't. Signed-off-by: Dave Martin --- arch/arm/common/vlock.h | 43 ------------------------------------------- 1 files changed, 0 insertions(+), 43 deletions(-) delete mode 100644 arch/arm/common/vlock.h diff --git a/arch/arm/common/vlock.h b/arch/arm/common/vlock.h deleted file mode 100644 index 94c29a6..0000000 --- a/arch/arm/common/vlock.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * vlock.h - simple voting lock implementation - * - * Created by: Dave Martin, 2012-08-16 - * Copyright: (C) 2012 Linaro Limited - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef __VLOCK_H -#define __VLOCK_H - -#include - -#define VLOCK_OWNER_OFFSET 0 -#define VLOCK_VOTING_OFFSET 4 -#define VLOCK_VOTING_SIZE ((BL_CPUS_PER_CLUSTER + 3) / 4 * 4) -#define VLOCK_SIZE (VLOCK_VOTING_OFFSET + VLOCK_VOTING_SIZE) -#define VLOCK_OWNER_NONE 0 - -#ifndef __ASSEMBLY__ - -struct vlock { - char data[VLOCK_SIZE]; -}; - -int vlock_trylock(struct vlock *lock, unsigned int owner); -void vlock_unlock(struct vlock *lock); - -#endif /* __ASSEMBLY__ */ -#endif /* ! __VLOCK_H */