aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <matthias.kaehlcke@gmail.com>2007-07-09 17:17:55 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-07-09 17:17:55 -0400
commitef29888ea8e1fdc499e995260195b66fc91d2728 (patch)
treeaa042c07a63de5bf4147ab819f89724ad9838877 /include/linux/ide.h
parentc283f5dbe31920ca70b80a594a97bfaa2a28be13 (diff)
ide: use mutex instead of ide_cfg_sem semaphore in IDE driver
The IDE driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 0bacf7f7c791..16ae68857f57 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1382,11 +1382,11 @@ extern const ide_pio_timings_t ide_pio_timings[6];
1382 1382
1383 1383
1384extern spinlock_t ide_lock; 1384extern spinlock_t ide_lock;
1385extern struct semaphore ide_cfg_sem; 1385extern struct mutex ide_cfg_mtx;
1386/* 1386/*
1387 * Structure locking: 1387 * Structure locking:
1388 * 1388 *
1389 * ide_cfg_sem and ide_lock together protect changes to 1389 * ide_cfg_mtx and ide_lock together protect changes to
1390 * ide_hwif_t->{next,hwgroup} 1390 * ide_hwif_t->{next,hwgroup}
1391 * ide_drive_t->next 1391 * ide_drive_t->next
1392 * 1392 *