Changeset 29e7cc7 in mainline for kernel/generic/src/ddi/irq.c


Ignore:
Timestamp:
2025-04-18T15:14:10Z (2 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
e77c3ed
Parents:
800d188 (diff), 25fdb2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'upstream/master' into helenraid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/irq.c

    r800d188 r29e7cc7  
    7575static size_t irq_ht_key_hash(const void *);
    7676static bool irq_ht_equal(const ht_link_t *, const ht_link_t *);
    77 static bool irq_ht_key_equal(const void *, const ht_link_t *);
     77static bool irq_ht_key_equal(const void *, size_t, const ht_link_t *);
    7878
    7979static const hash_table_ops_t irq_ht_ops = {
     
    141141{
    142142        irq_spinlock_lock(l, false);
    143         ht_link_t *first = hash_table_find(h, &inr);
    144         for (ht_link_t *lnk = first; lnk;
    145             lnk = hash_table_find_next(h, first, lnk)) {
    146                 irq_t *irq = hash_table_get_inst(lnk, irq_t, link);
     143
     144        hash_table_foreach(h, &inr, link, irq_t, irq) {
    147145                irq_spinlock_lock(&irq->lock, false);
    148146                if (irq->claim(irq) == IRQ_ACCEPT) {
     
    153151                irq_spinlock_unlock(&irq->lock, false);
    154152        }
     153
    155154        irq_spinlock_unlock(l, false);
    156155
     
    223222
    224223/** Return true if the key is equal to the item's lookup key. */
    225 bool irq_ht_key_equal(const void *key, const ht_link_t *item)
     224bool irq_ht_key_equal(const void *key, size_t hash, const ht_link_t *item)
    226225{
    227226        const inr_t *inr = key;
Note: See TracChangeset for help on using the changeset viewer.