version 1.35, 2008/10/15 06:51:20 |
version 1.35.8.1, 2009/05/13 17:21:56 |
|
|
/* $NetBSD$ */ |
/* $NetBSD$ */ |
|
|
/*- |
/*- |
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. |
* Copyright (c) 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. |
* All rights reserved. |
* All rights reserved. |
* |
* |
* This code is derived from software contributed to The NetBSD Foundation |
* This code is derived from software contributed to The NetBSD Foundation |
Line 72 sleeptab_init(sleeptab_t *st) |
|
Line 72 sleeptab_init(sleeptab_t *st) |
|
|
|
for (i = 0; i < SLEEPTAB_HASH_SIZE; i++) { |
for (i = 0; i < SLEEPTAB_HASH_SIZE; i++) { |
sq = &st->st_queues[i].st_queue; |
sq = &st->st_queues[i].st_queue; |
mutex_init(&st->st_queues[i].st_mutex, MUTEX_DEFAULT, |
st->st_queues[i].st_mutex = |
IPL_SCHED); |
mutex_obj_alloc(MUTEX_DEFAULT, IPL_SCHED); |
sleepq_init(sq); |
sleepq_init(sq); |
} |
} |
} |
} |