From: akpm@linux-foundation.org
To: matthias@kaehlcke.net, daniel@caiaq.de, eric.miao@marvell.com,
rmk@arm.linux.org.uk, mm-commits@vger.kernel.org
Subject: - pxafb-convert-ctrlr_sem-in-a-mutex.patch removed from -mm tree
Date: Thu, 24 Jul 2008 16:31:45 -0700 [thread overview]
Message-ID: <200807242331.m6ONVjTr011663@imap1.linux-foundation.org> (raw)
The patch titled
pxafb: convert ctrlr_sem in a mutex
has been removed from the -mm tree. Its filename was
pxafb-convert-ctrlr_sem-in-a-mutex.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: pxafb: convert ctrlr_sem in a mutex
From: Matthias Kaehlcke <matthias@kaehlcke.net>
The semaphore ctrlr_sem is used as a mutex. Convert it to the mutex API.
Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: Eric Miao <eric.miao@marvell.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/video/pxafb.c | 7 ++++---
drivers/video/pxafb.h | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff -puN drivers/video/pxafb.c~pxafb-convert-ctrlr_sem-in-a-mutex drivers/video/pxafb.c
--- a/drivers/video/pxafb.c~pxafb-convert-ctrlr_sem-in-a-mutex
+++ a/drivers/video/pxafb.c
@@ -41,6 +41,7 @@
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/completion.h>
+#include <linux/mutex.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
@@ -1059,7 +1060,7 @@ static void set_ctrlr_state(struct pxafb
{
u_int old_state;
- down(&fbi->ctrlr_sem);
+ mutex_lock(&fbi->ctrlr_lock);
old_state = fbi->state;
@@ -1147,7 +1148,7 @@ static void set_ctrlr_state(struct pxafb
}
break;
}
- up(&fbi->ctrlr_sem);
+ mutex_unlock(&fbi->ctrlr_lock);
}
/*
@@ -1400,7 +1401,7 @@ static struct pxafb_info * __devinit pxa
init_waitqueue_head(&fbi->ctrlr_wait);
INIT_WORK(&fbi->task, pxafb_task);
- init_MUTEX(&fbi->ctrlr_sem);
+ mutex_init(&fbi->ctrlr_lock);
init_completion(&fbi->disable_done);
#ifdef CONFIG_FB_PXA_SMARTPANEL
init_completion(&fbi->command_done);
diff -puN drivers/video/pxafb.h~pxafb-convert-ctrlr_sem-in-a-mutex drivers/video/pxafb.h
--- a/drivers/video/pxafb.h~pxafb-convert-ctrlr_sem-in-a-mutex
+++ a/drivers/video/pxafb.h
@@ -106,7 +106,7 @@ struct pxafb_info {
volatile u_char state;
volatile u_char task_state;
- struct semaphore ctrlr_sem;
+ struct mutex ctrlr_lock;
wait_queue_head_t ctrlr_wait;
struct work_struct task;
_
Patches currently in -mm which might be from matthias@kaehlcke.net are
origin.patch
linux-next.patch
hfs-convert-bitmap_lock-in-a-mutex.patch
hfs-convert-extents_lock-in-a-mutex.patch
hfsplus-convert-the-extents_lock-in-a-mutex.patch
ata-over-ethernet-convert-emsgs_sema-in-a-completion.patch
affs-convert-s_bmlock-into-a-mutex.patch
reply other threads:[~2008-07-24 23:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200807242331.m6ONVjTr011663@imap1.linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=daniel@caiaq.de \
--cc=eric.miao@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias@kaehlcke.net \
--cc=mm-commits@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.