Changeset 2845930 in mainline for kernel/generic/src/ddi/irq.c
- Timestamp:
- 2009-04-06T22:05:15Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 6071a8f
- Parents:
- 3636964
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/irq.c
r3636964 r2845930 102 102 static index_t irq_ht_hash(unative_t *key); 103 103 static bool irq_ht_compare(unative_t *key, count_t keys, link_t *item); 104 static void irq_ht_remove(link_t *item); 104 105 105 106 static hash_table_operations_t irq_ht_ops = { 106 107 .hash = irq_ht_hash, 107 108 .compare = irq_ht_compare, 108 .remove_callback = NULL /* not used */109 .remove_callback = irq_ht_remove, 109 110 }; 110 111 … … 117 118 static index_t irq_lin_hash(unative_t *key); 118 119 static bool irq_lin_compare(unative_t *key, count_t keys, link_t *item); 120 static void irq_lin_remove(link_t *item); 119 121 120 122 static hash_table_operations_t irq_lin_ops = { 121 123 .hash = irq_lin_hash, 122 124 .compare = irq_lin_compare, 123 .remove_callback = NULL /* not used */125 .remove_callback = irq_lin_remove, 124 126 }; 125 127 … … 348 350 } 349 351 352 /** Unlock IRQ structure after hash_table_remove(). 353 * 354 * @param lnk Link in the removed and locked IRQ structure. 355 */ 356 void irq_ht_remove(link_t *lnk) 357 { 358 irq_t *irq = hash_table_get_instance(lnk, irq_t, link); 359 spinlock_unlock(&irq->lock); 360 } 361 350 362 /** Compute hash index for the key. 351 363 * … … 407 419 } 408 420 421 /** Unlock IRQ structure after hash_table_remove(). 422 * 423 * @param lnk Link in the removed and locked IRQ structure. 424 */ 425 void irq_lin_remove(link_t *lnk) 426 { 427 irq_t *irq = hash_table_get_instance(lnk, irq_t, link); 428 spinlock_unlock(&irq->lock); 429 } 430 409 431 /** @} 410 432 */
Note:
See TracChangeset
for help on using the changeset viewer.