Changeset 00eace3 in mainline
- Timestamp:
- 2009-02-21T19:19:35Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9446f39
- Parents:
- 1e23e16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/irq.c
r1e23e16 r00eace3 83 83 * This lock must be taken only when interrupts are disabled. 84 84 */ 85 staticSPINLOCK_INITIALIZE(irq_kernel_hash_table_lock);85 SPINLOCK_INITIALIZE(irq_kernel_hash_table_lock); 86 86 /** The kernel IRQ hash table. */ 87 87 static hash_table_t irq_kernel_hash_table; … … 179 179 void irq_register(irq_t *irq) 180 180 { 181 spinlock_t *lock = &irq_kernel_hash_table_lock;182 hash_table_t *table = &irq_kernel_hash_table;183 181 ipl_t ipl; 184 182 unative_t key[] = { … … 188 186 189 187 ipl = interrupts_disable(); 190 spinlock_lock( lock);188 spinlock_lock(&irq_kernel_hash_table_lock); 191 189 spinlock_lock(&irq->lock); 192 hash_table_insert( table, key, &irq->link);190 hash_table_insert(&irq_kernel_hash_table, key, &irq->link); 193 191 spinlock_unlock(&irq->lock); 194 spinlock_unlock( lock);192 spinlock_unlock(&irq_kernel_hash_table_lock); 195 193 interrupts_restore(ipl); 196 194 }
Note:
See TracChangeset
for help on using the changeset viewer.