| version 1.157, 2008/04/24 11:38:36 |
version 1.158, 2008/04/27 11:37:48 |
| Line 2376 pool_cache_cpu_enter(pool_cache_t pc, in |
|
| Line 2376 pool_cache_cpu_enter(pool_cache_t pc, in |
|
| * CPU-local data. To avoid touching shared state, we |
* CPU-local data. To avoid touching shared state, we |
| * pull the neccessary information from CPU local data. |
* pull the neccessary information from CPU local data. |
| */ |
*/ |
| crit_enter(); |
KPREEMPT_DISABLE(); |
| cc = pc->pc_cpus[curcpu()->ci_index]; |
cc = pc->pc_cpus[curcpu()->ci_index]; |
| KASSERT(cc->cc_cache == pc); |
KASSERT(cc->cc_cache == pc); |
| if (cc->cc_ipl != IPL_NONE) { |
if (cc->cc_ipl != IPL_NONE) { |
| Line 2394 pool_cache_cpu_exit(pool_cache_cpu_t *cc |
|
| Line 2394 pool_cache_cpu_exit(pool_cache_cpu_t *cc |
|
| if (cc->cc_ipl != IPL_NONE) { |
if (cc->cc_ipl != IPL_NONE) { |
| splx(*s); |
splx(*s); |
| } |
} |
| crit_exit(); |
KPREEMPT_ENABLE(); |
| } |
} |
| |
|
| #if __GNUC_PREREQ__(3, 0) |
#if __GNUC_PREREQ__(3, 0) |