QLA1280: call pci_set_dma_mask with DMA_64BIT_MASK instead of ~ 0ULL
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
---
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c
index 6777e8a..54d8bdf 100644
--- a/drivers/scsi/qla1280.c
+++ b/drivers/scsi/qla1280.c
@@ -4293,7 +4293,7
.
please let me know your comments if i misinterpreted the article or if
you see something wrong in the patch
--
Smart Battery System ACPI driver: convert binary semaphore to mutex
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index
use mutex instead of binary semaphore in FORE Systems 200E-series
driver for ATM
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
---
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
index a7c0ed3..7ab827d 100644
--- a/drivers/atm/fore200e.c
+++ b/drivers/atm/fore200e.c
@@ -1502,9
use mutex instead of binary semaphore in
drivers/base/attribute_container.c
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/base/attribute_container.c
b/drivers/base/attribute_container.c
index 073..1ec0654 100644
--- a/drivers/base/attribute_container.c
+++ b
El Fri, Apr 20, 2007 at 05:41:46PM -0700 Andrew Morton ha dit:
On Sat, 14 Apr 2007 07:09:07 +0200
Matthias Kaehlcke [EMAIL PROTECTED] wrote:
fixed incorrect spinlock use in hysdn_log_close(). the function
declared a spinlock on the stack and used it to 'protect' a shared
driver
use spinlock instead of binary mutex in CDU-31A driver
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c
index 2157c58..d3649e4 100644
--- a/drivers/cdrom/cdu31a.c
+++ b/drivers/cdrom/cdu31a.c
@@ -263,7 +263,7 @@ static int
use spinlock instead of binary mutex in idt77252 driver
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index b4b8014..e3cf141 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -2430,7 +2430,7 @@ idt77252_open
El Mon, Apr 23, 2007 at 01:25:58AM +0200 Andi Kleen ha dit:
Matthias Kaehlcke [EMAIL PROTECTED] writes:
-static DECLARE_MUTEX(sony_sem);/* Semaphore for drive hardware
access */
+static DEFINE_MUTEX(sony_mtx); /* Mutex for drive hardware
access */
That's
El Sun, Apr 22, 2007 at 07:50:36PM -0400 Kyle Moffett ha dit:
On Apr 22, 2007, at 17:39:59, Matthias Kaehlcke wrote:
use spinlock instead of binary mutex in idt77252 driver
I think you really meant: Use mutex instead of binary semaphore in
idt77252 driver, since this is a binary semaphore
use mutex instead of binary semaphore in CDU-31A driver
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c
index 2157c58..d3649e4 100644
--- a/drivers/cdrom/cdu31a.c
+++ b/drivers/cdrom/cdu31a.c
@@ -263,7 +263,7 @@ static int
use mutex instead of binary semaphore in idt77252 driver
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index b4b8014..e3cf141 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -2430,7 +2430,7 @@ idt77252_open
itself.
http://lwn.net/Articles/167034/
please correct me if i'm wrong, i'm just doing my first steps with
linux kernel development
regards
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
C treats you like a consenting adult. Pascal treats you like a
naughty child. Ada
the mutex header nor implementation files
handle things different for CONFIG_SMP.
thanks for your comments
On Mon, Apr 23, 2007 at 09:40:26AM +0200, Matthias Kaehlcke wrote:
El Mon, Apr 23, 2007 at 09:16:08AM +0200 Eddie C. Dost ha dit:
Please note that the semaphore is used to lock
El Mon, Apr 23, 2007 at 09:17:53AM +0100 Christoph Hellwig ha dit:
On Sun, Apr 22, 2007 at 07:50:36PM -0400, Kyle Moffett wrote:
On Apr 22, 2007, at 17:39:59, Matthias Kaehlcke wrote:
use spinlock instead of binary mutex in idt77252 driver
I think you really meant: Use mutex instead
the RocketPort driver uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index 76357c8..faa5dd5 100644
--- a/drivers/char/rocket.c
+++ b/drivers/char
El Tue, Apr 24, 2007 at 07:53:04PM +0200 Oliver Neukum ha dit:
Am Dienstag, 24. April 2007 19:49 schrieb Matthias Kaehlcke:
@@ -1706,7 +1706,7 @@ static int rp_write(struct tty_struct *tty,
if (count = 0 || rocket_paranoia_check(info, rp_write))
return 0
the SBPCD driver uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c
index a1283b1..5c6a8d3 100644
--- a/drivers/cdrom/sbpcd.c
+++ b/drivers/cdrom/sbpcd.c
the TPM driver uses two semaphores as mutexes. use the mutex API
instead of the (binary) semaphores
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c
index e5a254a..0805d39 100644
--- a/drivers/char/tpm/tpm.c
+++ b/drivers/char
the Sony Programmable I/O Control driver uses a semaphore as
mutex. use the mutex API instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
index 7823757..878d8d0 100644
--- a/drivers/char/sonypi.c
the DMA pool handler uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c
index cd467c9..9406259 100644
--- a/drivers/base/dmapool.c
+++ b/drivers/base
El Wed, Apr 25, 2007 at 10:36:38AM +0530 Satyam Sharma ha dit:
Hi Matthias,
On 4/25/07, Robert Hancock [EMAIL PROTECTED] wrote:
Matthias Kaehlcke wrote:
El Tue, Apr 24, 2007 at 07:53:04PM +0200 Oliver Neukum ha dit:
Am Dienstag, 24. April 2007 19:49 schrieb Matthias Kaehlcke
the RocketPort driver uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index 76357c8..7d23790 100644
--- a/drivers/char/rocket.c
+++ b/drivers/char
include KERN_* constant in printk() calls in arch/i386/mach-default/setup.c
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
---
diff --git a/arch/i386/mach-default/setup.c b/arch/i386/mach-default/setup.c
index c788162..f1891b6 100644
--- a/arch/i386/mach-default/setup.c
+++ b/arch/i386/mach
fixed incorrect spinlock use in hysdn_log_close(). the function
declared a spinlock on the stack and used it to 'protect' a shared
driver structure. the patch removes the declaration of hysdn_lock and
uses card-hysdn_lock instead.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
---
diff
according to the chapter Linux Kernel Overview of the
kernelhacking-HOWTO the page cache holds pages associated with *open*
files:
The Page Cache
The page cache is made up of pages, each of which refers to a 4kB
portion of data associated with an open file. The data contained in a
page may come
be as short as possible,
otherwise you risk starving of the rest of your systems processes.
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
Representation of the world, like the world itself, is
the work of men; they describe it from their own point
of view, which
QLogic InfiniPath: convert the semaphore ipath_eep_sem to the mutex
API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/infiniband/hw/ipath/ipath_eeprom.c
b/drivers/infiniband/hw/ipath/ipath_eeprom.c
index e7c25db..a5b6299 100644
--- a/drivers/infiniband/hw/ipath
TI 3410/5052 USB Serial: convert semaphore td_open_close_lock to the
mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c
b/drivers/usb/serial/ti_usb_3410_5052.c
index 1f01494..995fdf3 100644
--- a/drivers/usb/serial
Edgeport USB Serial Converter: convert semaphore es_sem to the
mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index b867090..f7fdf1c 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
USB testing driver: convert semaphore dev-sem to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
index ea31621..57260ab 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -6,6 +6,7
El Tue, Dec 04, 2007 at 11:09:02AM -0800 Daniel Walker ha dit:
On Tue, 2007-12-04 at 17:55 +0100, Matthias Kaehlcke wrote:
@@ -1990,7 +1991,7 @@ static void usbtest_disconnect (struct
usb_interface *intf)
{
struct usbtest_dev *dev = usb_get_intfdata (intf
queue, and there still ~50 hopefully trivial ones
still to be looked at.. Then another ~30 more difficult ones (that use
init_MUTEX_LOCKED, or sema_init with 0 instead of 1) ..
I've also more patches of this type on my list, though i work in a
slower pace
--
Matthias Kaehlcke
Linux Application
. at the moment i'm having a look at usb drivers.
2007/12/6, Matthias Kaehlcke [EMAIL PROTECTED]:
El Thu, Dec 06, 2007 at 08:34:06AM -0800 Daniel Walker ha dit:
On Thu, 2007-12-06 at 11:23 +0100, Ingo Molnar wrote:
* Daniel Walker [EMAIL PROTECTED] wrote:
The port_mutex is actually
work, a mutex must not be released from another
context than the one that acquired it.
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
Don't walk behind me, I may not lead
Don't walk in front of me, I may not follow
Just walk beside me
El Wed, Nov 28, 2007 at 08:46:51AM -0600 Larry Finger ha dit:
Matthias Kaehlcke wrote:
El Tue, Nov 27, 2007 at 10:37:00PM -0600 Larry Finger ha dit:
If a particular routine needs to lock a mutex, but it may be entered with
that mutex already locked,
would the following code be SMP
PLIP driver: convert the semaphore killed_timer_sem to
a completion
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/net/plip.c b/drivers/net/plip.c
index 57c9866..fee3d7b 100644
--- a/drivers/net/plip.c
+++ b/drivers/net/plip.c
@@ -106,6 +106,7 @@ static const char
PPP synchronous tty channel driver: convert the semaphore dead_sem to
a completion
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp_synctty.c
index f0c6a19..f7472c8 100644
--- a/drivers/net/ppp_synctty.c
+++ b/drivers/net
QLA2XXX driver: convert the semaphore mbx_intr_sem to a completion
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 04e8cbc..ae3b3f4 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx
El Sun, Dec 09, 2007 at 12:04:48PM -0500 Charlie Brady ha dit:
On Sat, 8 Dec 2007, Matthias Kaehlcke wrote:
PPP synchronous tty channel driver: convert the semaphore dead_sem to
a completion
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
Excuse my ignorance please, but why
acpi_pci_irq_find_prt_entry(): use list_for_each_entry() instead of
list_for_each()
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
index dd3186a..e51dac7 100644
--- a/drivers/acpi/pci_irq.c
+++ b/drivers/acpi/pci_irq.c
fs/sysfs/file.c: use DEFINE_SPINLOCK for definition of
sysfs_open_dirent_lock instead of assigning SPIN_LOCK_UNLOCKED
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 4045bdc..09a0611 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
suggest that you grab and learn
http://savannah.nongnu.org/projects/quilt/ - it takes care of all these
things for you.
i actually used quilt for this patchset but must have missed
something. thanks for the pointer!
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
Dreams
Parallel port: Convert port_mutex to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index c59e2a0..60aecf9 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -312,7 +312,7 @@ static ssize_t lp_write(struct file
MegaRAID SAS: Convert aen_mutex to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
index e3c5c52..3ad379f 100644
--- a/drivers/scsi/megaraid/megaraid_sas.c
+++ b/drivers/scsi/megaraid/megaraid_sas.c
@@ -31,6 +31,7 @@
#include linux/moduleparam.h
#include linux/module.h
SW [aio/0]
Kernel thread handling asynchronous IO.
85 rootSW [mtdblockd]
116 rootSWN [jffs2_gcd_mtd9]
jffs2 specific - ask a maintainer :) (and mtdblockd has something to
do with MTD devices so he may know that one as well).
--
Matthias Kaehlcke
Linux
Hardware Monitor LM70: Convert the semaphore lm70-sem to the mutex
API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/hwmon/lm70.c b/drivers/hwmon/lm70.c
index dd36688..d435f00 100644
--- a/drivers/hwmon/lm70.c
+++ b/drivers/hwmon/lm70.c
@@ -31,14 +31,15 @@
#include
usbvision: Convert the usbvision-lock semaphore to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/media/video/usbvision/usbvision-core.c
b/drivers/media/video/usbvision/usbvision-core.c
index c7d5f9e..2038d40 100644
--- a/drivers/media/video/usbvision
MBCS: Convert the semaphores algolock, dmareadlock and dmawritelock to the
mutex API
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
We build too many walls and not enough bridges
(Isaac Newton
MBCS: Convert the semaphore algolock to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--- kernel.orig/linux-2.6/drivers/char/mbcs.c 2007-10-23 17:37:56.0
+0200
+++ kernel/linux-2.6/drivers/char/mbcs.c2007-10-23 17:40:16.0
+0200
@@ -24,6 +24,7
MBCS: Convert the semaphore dmawritelock to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
Index: kernel/linux-2.6/drivers/char/mbcs.h
===
--- kernel.orig/linux-2.6/drivers/char/mbcs.h 2007-10-23 17:50
MBCS: Convert the semaphore dmareadlock to the mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--- kernel.orig/linux-2.6/drivers/char/mbcs.c 2007-10-23 17:43:36.0
+0200
+++ kernel/linux-2.6/drivers/char/mbcs.c2007-10-23 17:44:11.0
+0200
@@ -348,7 +348,7
Adaptec AACRAID driver: The semaphore fibctx-wait_sem is used for
signalling an event. Convert it to a completion.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 3195d29..eef4939 100644
--- a/drivers/scsi
El Wed, Feb 13, 2008 at 01:09:00PM -0600 James Bottomley ha dit:
On Wed, 2008-02-13 at 19:34 +0100, Matthias Kaehlcke wrote:
Adaptec AACRAID driver: The semaphore fibctx-wait_sem is used for
signalling an event. Convert it to a completion.
What's the purpose of doing this? The aacraid
with the corrected license string later this day
best regards
--
Matthias Kaehlcke
Embedded Linux Developer
Amsterdam
The only power to which man should aspire
is that which he exercises over himself
(Elie Wiesel
The ELAN U132 Host Controller Driver uses the semaphore sw_lock as
mutex. Use the mutex API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index b88eb3c..1201ca4 100644
--- a/drivers
This patchset converts sw_lock and scheduler_lock in the ELAN U132
Host Controller Driver from semaphores to the mutex API
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
La libertad es como la maƱana. Hay quienes esperan dormidos a que
llegue, pero hay quienes desvelan y
The ELAN U132 Host Controller Driver uses the semaphore scheduler_lock
as mutex. Use the mutex API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index b88eb3c..e22 100644
scheduler_lock;
+struct mutex scheduler_lock;
Are you sure, you have right patch sequence?
my idea was to sent two independent patches, would it be better to
have one patch based on the other?
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
Insanity: doing
A corrected version of the patch, the first one contained context
removed by the first patch of this serie
--
The ELAN U132 Host Controller Driver uses the semaphore scheduler_lock
as mutex. Use the mutex API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED
Generic AC97 mixer/modem (OSS): Use list_for_each_entry instead of
list_for_each
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/sound/oss/ac97_codec.c b/sound/oss/ac97_codec.c
index fef56ca..0a3033b 100644
--- a/sound/oss/ac97_codec.c
+++ b/sound/oss/ac97_codec.c
@@ -815,7
Use list_for_each_entry(_safe) instead of list_for_each(_safe) in the
following sound drivers/code:
Generic AC97 mixer/modem module (OSS)
ESS Maestro 1/2/2E Sound Card
Intel HD Audio
Routines for effect processor FX8010
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
La
ESS Maestro 1/2/2E Sound Card: Use list_for_each_entry instead of
list_for_each
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c
index 2faf009..d69b11d 100644
--- a/sound/pci/es1968.c
+++ b/sound/pci/es1968.c
@@ -843,10 +843,9 @@ static
Routines for effect processor FX8010: Use list_for_each_entry instead
of list_for_each
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h
index 529d0a5..24399a0 100644
--- a/include/sound/emu10k1.h
+++ b/include/sound/emu10k1.h
Intel HD Audio: Use list_for_each_entry(_safe) instead of
list_for_each(_safe)
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 000287f..5a96a8a 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda
This patchset converts list_for_each(_safe) to
list_for_each_entry(_safe) in the following files:
kernel/exit.c
kernel/time/clocksource.c
kernel/user.c
mm/oom_kill.c
mm/page_alloc.c
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
El trabajo es el refugio de los que no tienen
kernel/exit.c: Convert list_for_each(_safe) to
list_for_each_entry(_safe) in forget_original_parent(), exit_notify()
and do_wait()
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/kernel/exit.c b/kernel/exit.c
index ca6a11b..ac84684 100644
--- a/kernel/exit.c
+++ b/kernel
kernel/time/clocksource.c: Convert list_for_each to
list_for_each_entry in clocksource_resume(),
sysfs_override_clocksource() and show_available_clocksources()
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 51b6a6a
kernel/user.c: Convert list_for_each to list_for_each_entry in
uid_hash_find()
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/kernel/user.c b/kernel/user.c
index 4869563..d0363d1 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -68,13 +68,9 @@ static inline void
mm/oom_kill.c: Convert list_for_each to list_for_each_entry in
oom_kill_process()
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index a700141..b1851c4 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -347,7 +347,6 @@ static int
mm/page_alloc.c: Convert list_for_each to list_for_each_entry in
mark_free_pages()
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 05ace44..1f138fb 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -731,7 +731,7 @@ void
fs/sysfs/dir.c: Define spinlock using DEFINE_SPINLOCK instead of
assignment to SPIN_LOCK_UNLOCKED
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 83e76b3..94fd78f 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -15,9 +15,9
drivers/ieee1394/ieee1394_core.c: Define spinlock using
DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/ieee1394/ieee1394_core.c b/drivers/ieee1394/ieee1394_core.c
index 98fd985..36c747b 100644
--- a/drivers
Videopix Frame Grabber: Convert the semaphore device_lock_sem to the
mutex API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/sbus/char/vfc.h b/drivers/sbus/char/vfc.h
index 63941a2..f1aa138 100644
--- a/drivers/sbus/char/vfc.h
+++ b/drivers/sbus/char/vfc.h
@@ -126,7
FTDI Elan driver: Convert the semaphore ftdi-u132_lock to the mutex
API
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c
index 538b535..d61e0ca 100644
--- a/drivers/usb/misc/ftdi-elan.c
+++ b/drivers/usb/misc/ftdi
This patchset converts semaphores that are used as mutexes to the
mutex API in the following drivers/code:
Host AP driver
OnStream SCSI Tape driver
SCSI Tape driver
ISDN subsystem common functions
DVB frontend tuning interface
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
The Host AP driver uses a semaphore as mutex. Use the mutex API
instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
- res = down_interruptible(local-rid_bap_sem);
+ res = mutex_lock_interruptible(local-rid_bap_mtx);
if (res
The OnStream SCSI Tape driver uses a semaphore as mutex. Use the mutex
API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
index 08060fb..0e2452c 100644
--- a/drivers/scsi/osst.c
+++ b/drivers/scsi
The SCSI Tape driver uses a semaphore as mutex. Use the mutex API
instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index a4f7b84..73c44cb 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -1485,7
The ISDN subsystem common functions use a semaphore as mutex. Use the
mutex API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
index c97330b..a5d3db4 100644
--- a/drivers/isdn
The DVB frontend tuning interface uses a semaphore as mutex. Use the
mutex API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c
b/drivers/media/dvb/dvb-core/dvb_frontend.c
index b6c7f66..e35dd17
El Mon, Jul 30, 2007 at 09:17:25AM +0530 Satyam Sharma ha dit:
Whoops ...
On Mon, 30 Jul 2007, Satyam Sharma wrote:
On Mon, 30 Jul 2007, Michael Buesch wrote:
On Sunday 29 July 2007 23:34, Matthias Kaehlcke wrote:
The Host AP driver uses a semaphore as mutex. Use the mutex API
the EDAC core code uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 7b62230..f217750 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac
the hdaps driver uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/hwmon/hdaps.c b/drivers/hwmon/hdaps.c
index bf759ea..f8e4952 100644
--- a/drivers/hwmon/hdaps.c
+++ b/drivers/hwmon/hdaps.c
El Wed, Apr 25, 2007 at 03:54:36PM +0200 Jiri Slaby ha dit:
Matthias Kaehlcke napsal(a):
the RocketPort driver uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
I think that ERESTARTSYS is appropriate
the misc character device driver uses a semaphore as mutex. use the
mutex API instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index 7e975f6..afd7cf5 100644
--- a/drivers/char/misc.c
+++ b/drivers/char
drivers/char/tty_io.c uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 7a32df5..4496fd2 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char
the RocketPort driver uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index 76357c8..af9379b 100644
--- a/drivers/char/rocket.c
+++ b/drivers/char
El Wed, Apr 25, 2007 at 08:13:59PM +0100 Christoph Hellwig ha dit:
On Wed, Apr 25, 2007 at 05:49:34PM +0200, Matthias Kaehlcke wrote:
drivers/char/tty_io.c uses a semaphore as mutex. use the mutex API
instead of the (binary) semaphore
This looks like it should be a spinlock
drivers/char/tty_io.c uses a semaphore to protect quick non-blocking
operations. use a spinlock instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
Signed-off-by: Christoph Hellwig [EMAIL PROTECTED]
--
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
the Berkshire USB-PC Watchdog driver uses a semaphore as mutex. use
the mutex API instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/watchdog/pcwd_usb.c b/drivers/char/watchdog/pcwd_usb.c
index 31037f9..1e7a671 100644
--- a/drivers
the IDE driver uses a semaphore as mutex. use the mutex API instead of
the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 8f15c23..34f79a5 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide
the virtual console driver uses a semaphore as mutex. use the mutex
API instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c
index 7919303..032d4f1 100644
--- a/drivers/char/vc_screen.c
+++ b
the CAPI 2.0 interface uses a semaphore as mutex. use the mutex
API instead of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
index db1260f..b260bdc 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers
Kcopyd uses a semaphore as mutex. use the mutex API instead of the
(binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c
index b46f6c5..340272a 100644
--- a/drivers/md/kcopyd.c
+++ b/drivers/md/kcopyd.c
@@ -195,7 +195,7
the Power Management code uses semaphores as mutexes. use the mutex
API instead of the (binary) semaphores
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 973..297061c 100644
--- a/drivers/base/power/main.c
+++ b
the sysdev code use a semaphore as mutex. use the mutex API instead
of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/base/sys.c b/drivers/base/sys.c
index 04e5db4..82c41d1 100644
--- a/drivers/base/sys.c
+++ b/drivers/base/sys.c
@@ -155,7
this patchset converts semaphores that are used as mutexes to the
mutex API in the following drivers/code:
Power Management
Kcopyd
sysdev
pvrusb2
scx200
--
Matthias Kaehlcke
Linux Application Developer
Barcelona
For to be free is not merely to cast off
one's
the pvrusb2 driver use a semaphore as mutex. use the mutex API instead
of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 9916cf3..ea450b0 100644
--- a/drivers
the scx200 driver use a semaphore as mutex. use the mutex API instead
of the (binary) semaphore
Signed-off-by: Matthias Kaehlcke [EMAIL PROTECTED]
--
diff --git a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c
index 0b082c5..669d2ac 100644
--- a/drivers/i2c/busses/scx200_acb.c
tps65217.txt to the
mfd directory and adding the backlight specific documentation.
Please confirm whether this is the correct/preferred way to document
device tree bindings of mfd devices
--
Matthias Kaehlcke
Embedded Linux Developer
Amsterdam
You can chain me, you can torture me, you
1 - 100 of 2887 matches
Mail list logo