Nishanth,
just a curious question:
Is there no h/w spinlock implementation for other architectures in
linux? I mean the concept does not seem unique for a heterogenous
processor environments now a days.. if it does exist, maybe we have two
options:
* extend standard spinlock architecture
driver
Hari,
-Original Message-
From: Kanigeri, Hari
Sent: Thursday, July 29, 2010 6:44 PM
To: Marathe, Yogesh; Premi, Sanjeev; Linux Omap; Tony Lindgren
Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon
Subject: RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver
Hari,
-Original Message-
From: Kanigeri, Hari
Sent: Thursday, July 29, 2010 6:44 PM
To: Marathe, Yogesh; Premi, Sanjeev; Linux Omap; Tony Lindgren
Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon
Subject: RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver
Yogesh,
Nice
Yogesh,
Nice to see your email.
+/* Release a spinlock */
+int hwspinlock_unlock(struct hwspinlock *handle)
+{
+ if (WARN_ON(handle == NULL))
+ return -EINVAL;
+
+ /* Release it by writing 0 to it */
+ writel(0, handle-lock_reg);
[[Yogesh
On 7/29/2010 3:14 PM, Kanigeri, Hari wrote:
Yogesh,
Nice to see your email.
+/* Release a spinlock */
+int hwspinlock_unlock(struct hwspinlock *handle)
+{
+ if (WARN_ON(handle == NULL))
+ return -EINVAL;
+
+ /* Release it by writing 0 to it */
+ writel(0,
Sanjeev,
Thanks for your comments.
-Original Message-
From: Premi, Sanjeev
Sent: Wednesday, July 28, 2010 11:58 AM
To: Kanigeri, Hari; Linux Omap; Tony Lindgren
Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon
Subject: RE: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver
Kanigeri, Hari had written, on 07/19/2010 11:50 AM, the following:
From: Simon Que s...@ti.com
Created driver for OMAP hardware spinlock. This driver supports:
- Reserved spinlocks for internal use
- Dynamic allocation of unreserved locks
- Lock, unlock, and trylock functions, with or without
-Original Message-
From: linux-omap-ow...@vger.kernel.org
[mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Kanigeri, Hari
Sent: Monday, July 19, 2010 10:20 PM
To: Linux Omap; Tony Lindgren
Cc: Shilimkar, Santosh; Cousson, Benoit; Que, Simon; Kanigeri, Hari
Subject: [PATCH 3/5]
: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver
-Original Message-
From: linux-omap-ow...@vger.kernel.org
[mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Kanigeri, Hari
Sent: Monday, July 19, 2010 10:20 PM
To: Linux Omap; Tony Lindgren
Cc: Shilimkar, Santosh; Cousson
, Simon
Subject: Re: [PATCH 3/5] omap:hwspinlock-added hwspinlock driver
Hi Simon and Hari,
On 7/19/2010 6:50 PM, Kanigeri, Hari wrote:
From: Simon Ques...@ti.com
Created driver for OMAP hardware spinlock. This driver supports:
- Reserved spinlocks for internal use
- Dynamic allocation
Hi Simon and Hari,
On 7/19/2010 6:50 PM, Kanigeri, Hari wrote:
From: Simon Ques...@ti.com
Created driver for OMAP hardware spinlock. This driver supports:
- Reserved spinlocks for internal use
- Dynamic allocation of unreserved locks
- Lock, unlock, and trylock functions, with or without
11 matches
Mail list logo