| version 1.128.2.3, 2007/03/21 20:10:22 |
version 1.128.2.4, 2007/03/22 12:30:29 |
| Line 771 pool_init(struct pool *pp, size_t size, |
|
| Line 771 pool_init(struct pool *pp, size_t size, |
|
| cv_init(&pp->pr_cv, wchan); |
cv_init(&pp->pr_cv, wchan); |
| pp->pr_ipl = ipl; |
pp->pr_ipl = ipl; |
| |
|
| if (strcmp(wchan, "kmem-52") == 0) { |
|
| printf("kmem-52 initted, mutex @ %p\n", &pp->pr_lock); |
|
| printf("=> %x %x %x %x\n", |
|
| ((uint32_t *)&pp->pr_lock)[0], |
|
| ((uint32_t *)&pp->pr_lock)[1], |
|
| ((uint32_t *)&pp->pr_lock)[2], |
|
| ((uint32_t *)&pp->pr_lock)[3]); |
|
| } |
|
| |
|
| /* |
/* |
| * Initialize private page header pool and cache magazine pool if we |
* Initialize private page header pool and cache magazine pool if we |
| * haven't done so yet. |
* haven't done so yet. |
| Line 1206 pool_do_put(struct pool *pp, void *v, st |
|
| Line 1197 pool_do_put(struct pool *pp, void *v, st |
|
| pp->pr_flags &= ~PR_WANTED; |
pp->pr_flags &= ~PR_WANTED; |
| if (ph->ph_nmissing == 0) |
if (ph->ph_nmissing == 0) |
| pp->pr_nidle++; |
pp->pr_nidle++; |
| wakeup((void *)pp); |
cv_broadcast(&pp->pr_cv); |
| return; |
return; |
| } |
} |
| |
|