Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: lockdep: Check the depth of subclass lockdep: Add improved subclass caching affs: Use sema_init instead of init_MUTEX hfs: Convert tree_lock to mutex arm: Bcmring: semaphore cleanup printk: Make console_sem a semaphore not a pseudo mutex drivers/macintosh/adb: Do not claim that the semaphore is a mutex parport: Semaphore cleanup irda: Semaphore cleanup net: Wan/cosa.c: Convert "mutex" to semaphore net: Ppp_async: semaphore cleanup hamradio: Mkiss: semaphore cleanup hamradio: 6pack: semaphore cleanup net: 3c527: semaphore cleanup input: Serio/hp_sdc: semaphore cleanup input: Serio/hil_mlc: semaphore cleanup input: Misc/hp_sdc_rtc: semaphore cleanup lockup_detector: Make callback function static lockup detector: Fix grammar by adding a missing "to" in the comments lockdep: Remove __debug_show_held_locks
This commit is contained in:
@@ -104,7 +104,7 @@ static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm)
|
||||
t.endidx = 91;
|
||||
t.seq = tseq;
|
||||
t.act.semaphore = &tsem;
|
||||
init_MUTEX_LOCKED(&tsem);
|
||||
sema_init(&tsem, 0);
|
||||
|
||||
if (hp_sdc_enqueue_transaction(&t)) return -1;
|
||||
|
||||
@@ -698,7 +698,7 @@ static int __init hp_sdc_rtc_init(void)
|
||||
return -ENODEV;
|
||||
#endif
|
||||
|
||||
init_MUTEX(&i8042tregs);
|
||||
sema_init(&i8042tregs, 1);
|
||||
|
||||
if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr)))
|
||||
return ret;
|
||||
|
||||
@@ -915,15 +915,15 @@ int hil_mlc_register(hil_mlc *mlc)
|
||||
mlc->ostarted = 0;
|
||||
|
||||
rwlock_init(&mlc->lock);
|
||||
init_MUTEX(&mlc->osem);
|
||||
sema_init(&mlc->osem, 1);
|
||||
|
||||
init_MUTEX(&mlc->isem);
|
||||
sema_init(&mlc->isem, 1);
|
||||
mlc->icount = -1;
|
||||
mlc->imatch = 0;
|
||||
|
||||
mlc->opercnt = 0;
|
||||
|
||||
init_MUTEX_LOCKED(&(mlc->csem));
|
||||
sema_init(&(mlc->csem), 0);
|
||||
|
||||
hil_mlc_clear_di_scratch(mlc);
|
||||
hil_mlc_clear_di_map(mlc, 0);
|
||||
|
||||
@@ -905,7 +905,7 @@ static int __init hp_sdc_init(void)
|
||||
ts_sync[1] = 0x0f;
|
||||
ts_sync[2] = ts_sync[3] = ts_sync[4] = ts_sync[5] = 0;
|
||||
t_sync.act.semaphore = &s_sync;
|
||||
init_MUTEX_LOCKED(&s_sync);
|
||||
sema_init(&s_sync, 0);
|
||||
hp_sdc_enqueue_transaction(&t_sync);
|
||||
down(&s_sync); /* Wait for t_sync to complete */
|
||||
|
||||
@@ -1039,7 +1039,7 @@ static int __init hp_sdc_register(void)
|
||||
return hp_sdc.dev_err;
|
||||
}
|
||||
|
||||
init_MUTEX_LOCKED(&tq_init_sem);
|
||||
sema_init(&tq_init_sem, 0);
|
||||
|
||||
tq_init.actidx = 0;
|
||||
tq_init.idx = 1;
|
||||
|
||||
Reference in New Issue
Block a user