From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 13EBD1C2A9D for ; Fri, 5 Dec 2014 22:11:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 111BB95C4D for ; Fri, 5 Dec 2014 22:11:31 +0000 (UTC) Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pBou-pAXOA4o for ; Fri, 5 Dec 2014 22:11:27 +0000 (UTC) Received: from mail1.bemta7.messagelabs.com (mail1.bemta7.messagelabs.com [216.82.254.112]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7774E95C4E for ; Fri, 5 Dec 2014 22:11:27 +0000 (UTC) From: Benjamin Romer Subject: [PATCH 06/69] staging: unisys: add comment to spinlock in struct charqueue Date: Fri, 5 Dec 2014 17:08:41 -0500 Message-ID: <1417817384-3811-7-git-send-email-benjamin.romer@unisys.com> In-Reply-To: <1417817384-3811-1-git-send-email-benjamin.romer@unisys.com> References: <1417817384-3811-1-git-send-email-benjamin.romer@unisys.com> MIME-Version: 1.0 List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: gregkh@linuxfoundation.org Cc: driverdev-devel@linuxdriverproject.org, sparmaintainer@unisys.com, Benjamin Romer Add a comment to the charqueue's spinlock to explain that it is a lock for the structure. Signed-off-by: Ken Depro Signed-off-by: Benjamin Romer --- drivers/staging/unisys/visorutil/charqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/staging/unisys/visorutil/charqueue.c index 1ce7003..ac7acb7 100644 --- a/drivers/staging/unisys/visorutil/charqueue.c +++ b/drivers/staging/unisys/visorutil/charqueue.c @@ -28,7 +28,7 @@ struct charqueue { int alloc_size; int nslots; - spinlock_t lock; + spinlock_t lock; /* read/write lock for this structure */ int head, tail; unsigned char buf[0]; }; -- 2.1.0 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel