CINXE.COM

LKML: David Howells: [PATCH 7/12]: MUTEX: Rename DECLARE_MUTEX for include/asm-*/ dirs

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>LKML: David Howells: [PATCH 7/12]: MUTEX: Rename DECLARE_MUTEX for include/asm-*/ dirs</title><link href="/css/message.css" rel="stylesheet" type="text/css" /><link href="/css/wrap.css" rel="alternate stylesheet" type="text/css" title="wrap" /><link href="/css/nowrap.css" rel="stylesheet" type="text/css" title="nowrap" /><link href="/favicon.ico" rel="shortcut icon" /><script src="/js/simple-calendar.js" type="text/javascript"></script><script src="/js/styleswitcher.js" type="text/javascript"></script><link rel="alternate" type="application/rss+xml" title="lkml.org : last 100 messages" href="/rss.php" /><link rel="alternate" type="application/rss+xml" title="lkml.org : last messages by David Howells" href="/groupie.php?aid=345" /><!--Matomo--><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setDoNotTrack", true]); _paq.push(["disableCookies"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//m.lkml.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><!--End Matomo Code--></head><body onload="es.jasper.simpleCalendar.init();" itemscope="itemscope" itemtype="http://schema.org/BlogPosting"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="180" align="center"><a href="/"><img style="border:0;width:135px;height:32px" src="/images/toprowlk.gif" alt="lkml.org" /></a></td><td width="32">聽</td><td class="nb"><div><a class="nb" href="/lkml"> [lkml]</a> 聽 <a class="nb" href="/lkml/2005"> [2005]</a> 聽 <a class="nb" href="/lkml/2005/12"> [Dec]</a> 聽 <a class="nb" href="/lkml/2005/12/16"> [16]</a> 聽 <a class="nb" href="/lkml/last100"> [last100]</a> 聽 <a href="/rss.php"><img src="/images/rss-or.gif" border="0" alt="RSS Feed" /></a></div><div>Views: <a href="#" class="nowrap" onclick="setActiveStyleSheet('wrap');return false;">[wrap]</a><a href="#" class="wrap" onclick="setActiveStyleSheet('nowrap');return false;">[no wrap]</a> 聽 <a class="nb" href="/lkml/mheaders/2005/12/16/280" onclick="this.href='/lkml/headers'+'/2005/12/16/280';">[headers]</a>聽 <a href="/lkml/bounce/2005/12/16/280">[forward]</a>聽 </div></td><td width="32">聽</td></tr><tr><td valign="top"><div class="es-jasper-simpleCalendar" baseurl="/lkml/"></div><div class="threadlist">Messages in this thread</div><ul class="threadlist"><li class="root"><a href="/lkml/2005/12/16/277">First message in thread</a></li><li><a href="/lkml/2005/12/16/277">David Howells</a><ul><li><a href="/lkml/2005/12/16/270">David Howells</a></li><li><a href="/lkml/2005/12/16/271">David Howells</a></li><li><a href="/lkml/2005/12/16/272">David Howells</a></li><li><a href="/lkml/2005/12/16/273">David Howells</a></li><li><a href="/lkml/2005/12/16/274">David Howells</a></li><li><a href="/lkml/2005/12/16/275">David Howells</a></li><li><a href="/lkml/2005/12/16/276">David Howells</a></li><li><a href="/lkml/2005/12/16/278">David Howells</a></li><li><a href="/lkml/2005/12/16/279">David Howells</a></li><li class="origin"><a href="">David Howells</a></li><li><a href="/lkml/2005/12/16/281">David Howells</a></li><li><a href="/lkml/2005/12/16/282">David Howells</a></li><li><a href="/lkml/2005/12/16/335">Steven Rostedt</a><ul><li><a href="/lkml/2005/12/17/13">Linus Torvalds</a><ul><li><a href="/lkml/2005/12/17/60">David Howells</a><ul><li><a href="/lkml/2005/12/17/63">Linus Torvalds</a></li></ul></li></ul></li><li><a href="/lkml/2005/12/17/15">Nick Piggin</a><ul><li><a href="/lkml/2005/12/17/24">Steven Rostedt</a></li></ul></li></ul></li></ul></li></ul><div class="threadlist">Patch in this message</div><ul class="threadlist"><li><a href="/lkml/diff/2005/12/16/280/1">Get diff 1</a></li></ul></td><td width="32" rowspan="2" class="c" valign="top"><img src="/images/icornerl.gif" width="32" height="32" alt="/" /></td><td class="c" rowspan="2" valign="top" style="padding-top: 1em"><table><tr><td><table><tr><td class="lp">Date</td><td class="rp" itemprop="datePublished">Fri, 16 Dec 2005 23:13:08 GMT</td></tr><tr><td class="lp">From</td><td class="rp" itemprop="author">David Howells &lt;&gt;</td></tr><tr><td class="lp">Subject</td><td class="rp" itemprop="name">[PATCH 7/12]: MUTEX: Rename DECLARE_MUTEX for include/asm-*/ dirs</td></tr></table></td><td></td></tr></table><pre itemprop="articleBody">The attached patch renames DECLARE_MUTEX*() to DECLARE_SEM_MUTEX*() for the<br />include/asm-*/ directories.<br /><br />Additionally, for the i386 arch it also implements sem_is_locked().<br /><br />Signed-Off-By: David Howells &lt;dhowells&#64;redhat.com&gt;<br />---<br />warthog&gt;diffstat -p1 mutex-incasm-2615rc5-2.diff<br /> include/asm-alpha/semaphore.h | 4 ++--<br /> include/asm-arm/semaphore.h | 4 ++--<br /> include/asm-arm26/semaphore.h | 4 ++--<br /> include/asm-cris/semaphore.h | 4 ++--<br /> include/asm-frv/semaphore.h | 4 ++--<br /> include/asm-h8300/semaphore.h | 4 ++--<br /> include/asm-i386/semaphore.h | 5 +++--<br /> include/asm-ia64/semaphore.h | 4 ++--<br /> include/asm-m32r/semaphore.h | 4 ++--<br /> include/asm-m68k/semaphore.h | 4 ++--<br /> include/asm-m68knommu/semaphore.h | 4 ++--<br /> include/asm-mips/semaphore.h | 4 ++--<br /> include/asm-parisc/semaphore.h | 4 ++--<br /> include/asm-powerpc/semaphore.h | 4 ++--<br /> include/asm-s390/semaphore.h | 4 ++--<br /> include/asm-sh/semaphore.h | 4 ++--<br /> include/asm-sh64/semaphore.h | 4 ++--<br /> include/asm-sparc/semaphore.h | 4 ++--<br /> include/asm-sparc64/semaphore.h | 4 ++--<br /> include/asm-v850/semaphore.h | 4 ++--<br /> include/asm-x86_64/semaphore.h | 4 ++--<br /> include/asm-xtensa/semaphore.h | 4 ++--<br /> 22 files changed, 45 insertions(+), 44 deletions(-)<br /><br />diff -uNrp linux-2.6.15-rc5/include/asm-alpha/semaphore.h linux-2.6.15-rc5-mutex/include/asm-alpha/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-alpha/semaphore.h 2005-12-08 16:23:51.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-alpha/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -29,8 +29,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init(struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-arm/semaphore.h linux-2.6.15-rc5-mutex/include/asm-arm/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-arm/semaphore.h 2005-12-08 16:23:51.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-arm/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -27,8 +27,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INIT(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init(struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-arm26/semaphore.h linux-2.6.15-rc5-mutex/include/asm-arm26/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-arm26/semaphore.h 2005-12-08 16:23:51.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-arm26/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -28,8 +28,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INIT(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init(struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-cris/semaphore.h linux-2.6.15-rc5-mutex/include/asm-cris/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-cris/semaphore.h 2005-12-08 16:23:51.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-cris/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -34,8 +34,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init(struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-frv/semaphore.h linux-2.6.15-rc5-mutex/include/asm-frv/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-frv/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-frv/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -50,8 +50,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-h8300/semaphore.h linux-2.6.15-rc5-mutex/include/asm-h8300/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-h8300/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-h8300/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -38,8 +38,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-i386/semaphore.h linux-2.6.15-rc5-mutex/include/asm-i386/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-i386/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-i386/semaphore.h 2005-12-16 17:42:40.000000000 +0000<br />&#64;&#64; -47,6 +47,7 &#64;&#64; struct semaphore {<br /> wait_queue_head_t wait;<br /> };<br /> <br />+#define sem_is_locked(s) (atomic_read(&amp;(s)-&gt;count) &lt;= 0)<br /> <br /> #define __SEMAPHORE_INITIALIZER(name, n) \<br /> { \<br />&#64;&#64; -58,8 +59,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-ia64/semaphore.h linux-2.6.15-rc5-mutex/include/asm-ia64/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-ia64/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-ia64/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -27,8 +27,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name, count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br /> <br /> static inline void<br /> sema_init (struct semaphore *sem, int val)<br />diff -uNrp linux-2.6.15-rc5/include/asm-m32r/semaphore.h linux-2.6.15-rc5-mutex/include/asm-m32r/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-m32r/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-m32r/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -35,8 +35,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-m68k/semaphore.h linux-2.6.15-rc5-mutex/include/asm-m68k/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-m68k/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-m68k/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -39,8 +39,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init(struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-m68knommu/semaphore.h linux-2.6.15-rc5-mutex/include/asm-m68knommu/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-m68knommu/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-m68knommu/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -38,8 +38,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-mips/semaphore.h linux-2.6.15-rc5-mutex/include/asm-mips/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-mips/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-mips/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -48,8 +48,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name, count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-parisc/semaphore.h linux-2.6.15-rc5-mutex/include/asm-parisc/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-parisc/semaphore.h 2005-12-08 16:23:52.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-parisc/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -52,8 +52,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> extern inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-powerpc/semaphore.h linux-2.6.15-rc5-mutex/include/asm-powerpc/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-powerpc/semaphore.h 2005-12-08 16:23:53.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-powerpc/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -34,8 +34,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name, count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-s390/semaphore.h linux-2.6.15-rc5-mutex/include/asm-s390/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-s390/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-s390/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -32,8 +32,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-sh/semaphore.h linux-2.6.15-rc5-mutex/include/asm-sh/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-sh/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-sh/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -36,8 +36,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-sh64/semaphore.h linux-2.6.15-rc5-mutex/include/asm-sh64/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-sh64/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-sh64/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -43,8 +43,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-sparc/semaphore.h linux-2.6.15-rc5-mutex/include/asm-sparc/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-sparc/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-sparc/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -25,8 +25,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-sparc64/semaphore.h linux-2.6.15-rc5-mutex/include/asm-sparc64/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-sparc64/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-sparc64/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -25,8 +25,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name, count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name, 0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-v850/semaphore.h linux-2.6.15-rc5-mutex/include/asm-v850/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-v850/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-v850/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -21,8 +21,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER (name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC (name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC (name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC (name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC (name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-x86_64/semaphore.h linux-2.6.15-rc5-mutex/include/asm-x86_64/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-x86_64/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-x86_64/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -59,8 +59,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />diff -uNrp linux-2.6.15-rc5/include/asm-xtensa/semaphore.h linux-2.6.15-rc5-mutex/include/asm-xtensa/semaphore.h<br />--- linux-2.6.15-rc5/include/asm-xtensa/semaphore.h 2005-12-08 16:23:54.000000000 +0000<br />+++ linux-2.6.15-rc5-mutex/include/asm-xtensa/semaphore.h 2005-12-15 17:14:56.000000000 +0000<br />&#64;&#64; -32,8 +32,8 &#64;&#64; struct semaphore {<br /> #define __DECLARE_SEMAPHORE_GENERIC(name,count) \<br /> struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)<br /> <br />-#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />-#define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br />+#define DECLARE_SEM_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1)<br />+#define DECLARE_SEM_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0)<br /> <br /> static inline void sema_init (struct semaphore *sem, int val)<br /> {<br />-<br />To unsubscribe from this list: send the line "unsubscribe linux-kernel" in<br />the body of a message to majordomo&#64;vger.kernel.org<br />More majordomo info at <a href="http://vger.kernel.org/majordomo-info.html">http://vger.kernel.org/majordomo-info.html</a><br />Please read the FAQ at <a href="http://www.tux.org/lkml/">http://www.tux.org/lkml/</a><br /></pre></td><td width="32" rowspan="2" class="c" valign="top"><img src="/images/icornerr.gif" width="32" height="32" alt="\" /></td></tr><tr><td align="right" valign="bottom"> 聽 </td></tr><tr><td align="right" valign="bottom">聽</td><td class="c" valign="bottom" style="padding-bottom: 0px"><img src="/images/bcornerl.gif" width="32" height="32" alt="\" /></td><td class="c">聽</td><td class="c" valign="bottom" style="padding-bottom: 0px"><img src="/images/bcornerr.gif" width="32" height="32" alt="/" /></td></tr><tr><td align="right" valign="top" colspan="2"> 聽 </td><td class="lm">Last update: 2005-12-17 00:20 聽聽 [from the cache]<br />漏2003-2020 <a href="http://blog.jasper.es/"><span itemprop="editor">Jasper Spaans</span></a>|hosted at <a href="https://www.digitalocean.com/?refcode=9a8e99d24cf9">Digital Ocean</a> and my Meterkast|<a href="http://blog.jasper.es/categories.html#lkml-ref">Read the blog</a></td><td>聽</td></tr></table><script language="javascript" src="/js/styleswitcher.js" type="text/javascript"></script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10