From patchwork Tue Sep 18 18:53:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1474381 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 0B1F1400EC for ; Tue, 18 Sep 2012 18:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753957Ab2IRSxr (ORCPT ); Tue, 18 Sep 2012 14:53:47 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:60809 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753996Ab2IRSxY (ORCPT ); Tue, 18 Sep 2012 14:53:24 -0400 Received: by mail-ey0-f174.google.com with SMTP id c11so54072eaa.19 for ; Tue, 18 Sep 2012 11:53:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=+rWI1zsiCpYJUVueVEuigFTsx3yo8d8z+XlN+4MSjvk=; b=aYFOZ6775AkeOa5zzebRQ01ErV4sYRXrXX2IOD7JoQr8r7D6SMDtuWjuPG5YvZTeEO g7s29RyH086GRTPoJlH6CWFg5L7mF9wYBfrQanP1uq8gbsEPMdMpOwHx5RVI38AaUsLR E2TjDkdJbPMpUZRE52YwM0wICL8UyPurkFXCzlG1HOhkCiziCOzWY/LxKeQavFbf/TrE 2/j3siTzamcw+3cupFvUU36sioKIsxwQaGYSEXUxBQfZWoEsKqx5O9QvaUfRhiIfehej 1o15+wNmsufHLSQwHioY6g4eka2lghz+QetoFpsNIGtDlt6oFx2UkcQ6+EoRSQa3PRIh JFbw== Received: by 10.14.202.131 with SMTP id d3mr981067eeo.32.1347994403249; Tue, 18 Sep 2012 11:53:23 -0700 (PDT) Received: from [169.254.173.157] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id e7sm1036365eep.2.2012.09.18.11.53.21 (version=SSLv3 cipher=OTHER); Tue, 18 Sep 2012 11:53:22 -0700 (PDT) Message-ID: <5058C321.3000003@dev.mellanox.co.il> Date: Tue, 18 Sep 2012 14:53:21 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH][TRIVIAL] opensm/complib/cl_spinlock.h: Remove some unimplemented routines X-Gm-Message-State: ALoCoQmFvou10Luvpt/Cw4rLMoQ1vKTg5KDVvTJkApgRKeQLeQs0mJzOxwAmWxKeSG+fV6Ye+HLN Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Remove cl_spinlock_acquire_irq and cl_spinlock_release_irq Signed-off-by: Hal Rosenstock --- include/complib/cl_spinlock.h | 61 ++--------------------------------------- 1 files changed, 3 insertions(+), 58 deletions(-) diff --git a/include/complib/cl_spinlock.h b/include/complib/cl_spinlock.h index 1a04b56..4de6f26 100644 --- a/include/complib/cl_spinlock.h +++ b/include/complib/cl_spinlock.h @@ -73,7 +73,6 @@ BEGIN_C_DECLS * * Manipulation * cl_spinlock_acquire, cl_spinlock_release -* cl_spinlock_acquire_irq, cl_spinlock_release_irq *********/ /****f* Component Library: Spinlock/cl_spinlock_construct * NAME @@ -133,9 +132,7 @@ cl_status_t cl_spinlock_init(IN cl_spinlock_t * const p_spinlock); * * SEE ALSO * Spinlock, cl_spinlock_construct, cl_spinlock_destroy, -* cl_spinlock_acquire, cl_spinlock_acquire_irq, -* cl_spinlock_release, cl_spinlock_release -* cl_spinlock_release_irq, cl_spinlock_release_irq +* cl_spinlock_acquire, cl_spinlock_release *********/ /****f* Component Library: Spinlock/cl_spinlock_destroy @@ -174,8 +171,7 @@ void cl_spinlock_destroy(IN cl_spinlock_t * const p_spinlock); * The cl_spinlock_acquire function acquires a spin lock. * This version of lock does not prevent an interrupt from * occuring on the processor on which the code is being -* executed. To protect from an interrupt level resource -* use the cl_spinlock_acquire_irq function. +* executed. * * SYNOPSIS */ @@ -189,33 +185,7 @@ void cl_spinlock_acquire(IN cl_spinlock_t * const p_spinlock); * This function does not return a value. * * SEE ALSO -* Spinlock, cl_spinlock_acquire_irq, cl_spinlock_release -* cl_spinlock_release_irq -*********/ - -/****f* Component Library: Spinlock/cl_spinlock_acquire_irq -* NAME -* cl_spinlock_acquire_irq -* -* DESCRIPTION -* The cl_spinlock_acquire_irq function acquires a spin lock and protects -* the current processor from taking interrupts. If you need to protect -* a variable from an interrupt resource, use this version to acquire -* a lock. -* -* SYNOPSIS -*/ -void cl_spinlock_acquire_irq(IN cl_spinlock_t * const p_spinlock); -/* -* PARAMETERS -* p_spin_lock -* [in] Pointer to a spin lock structure to acquire. -* -* RETURN VALUE -* This function does not return a value. -* -* SEE ALSO -* Spinlock, cl_spinlock_release_irq +* Spinlock, cl_spinlock_release *********/ /****f* Component Library: Spinlock/cl_spinlock_release @@ -243,30 +213,5 @@ void cl_spinlock_release(IN cl_spinlock_t * const p_spinlock); * Spinlock, cl_spinlock_acquire *********/ -/****f* Component Library: Spinlock/cl_spinlock_release_irq -* NAME -* cl_spinlock_release_irq -* -* DESCRIPTION -* The cl_spinlock_release_irq function releases a spin lock object. -* -* SYNOPSIS -*/ -void cl_spinlock_release_irq(IN cl_spinlock_t * const p_spinlock); -/* -* PARAMETERS -* p_spin_lock -* [in] Pointer to a spin lock structure to release. -* -* RETURN VALUE -* This function does not return a value. -* -* NOTES -* Releases a spin lock after a call to cl_spinlock_acquire. -* -* SEE ALSO -* Spinlock, cl_spinlock_acquire_irq -*********/ - END_C_DECLS #endif /* _CL_SPINLOCK_H_ */