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>
This commit is contained in:

committed by
Bartlomiej Zolnierkiewicz

parent
c283f5dbe3
commit
ef29888ea8
@@ -1382,11 +1382,11 @@ extern const ide_pio_timings_t ide_pio_timings[6];
|
||||
|
||||
|
||||
extern spinlock_t ide_lock;
|
||||
extern struct semaphore ide_cfg_sem;
|
||||
extern struct mutex ide_cfg_mtx;
|
||||
/*
|
||||
* Structure locking:
|
||||
*
|
||||
* ide_cfg_sem and ide_lock together protect changes to
|
||||
* ide_cfg_mtx and ide_lock together protect changes to
|
||||
* ide_hwif_t->{next,hwgroup}
|
||||
* ide_drive_t->next
|
||||
*
|
||||
|
Reference in New Issue
Block a user