lkml.org 
[lkml]   [2006]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm 02/02] Redefine "lock" in Document futex PI design

Try to explain the term lock better.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Index: linux-2.6.17-rc3-mm1/Documentation/rt-mutex-design.txt
===================================================================
--- linux-2.6.17-rc3-mm1.orig/Documentation/rt-mutex-design.txt 2006-05-10 09:21:41.000000000 -0400
+++ linux-2.6.17-rc3-mm1/Documentation/rt-mutex-design.txt 2006-05-10 09:21:55.000000000 -0400
@@ -84,9 +84,11 @@ mutex - In this document, to differen
PI and spin locks that are used in the PI code, from now on
the PI locks will be called a mutex.

-lock - In this document from now on, the term lock and spin lock will
- be synonymous. These are locks that are used for SMP as well
- as turning off preemption to protect areas of code on SMP machines.
+lock - In this document from now on, I will use the term lock when refering
+ to spin locks that are used to protect parts of the PI algorithm.
+ These locks disable preemption for UP (when CONFIG_PREEMPT is
+ enabled) and on SMP prevents multiple CPUs from entering critical
+ sections simultaneously.

spin lock - Same as lock above.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-10 15:39    [from the cache]
©2003-2011 Jasper Spaans