Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b67ce1ff in mainline


Ignore:
Timestamp:
2023-01-18T20:47:12Z (2 weeks ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
aaa3b855
Parents:
eb630cf
Message:

Use irq_spinlock functions in arm32 code, to be consistent with all other code

Location:
kernel/arch/arm32/src/mach
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c

    reb630cf rb67ce1ff  
    9292         * Release the lock, call clock() and reacquire the lock again.
    9393         */
    94         spinlock_unlock(&irq->lock);
     94        irq_spinlock_unlock(&irq->lock, false);
    9595        clock();
    96         spinlock_lock(&irq->lock);
     96        irq_spinlock_lock(&irq->lock, false);
    9797}
    9898
     
    156156                /* The IRQ handler was found. */
    157157                irq->handler(irq);
    158                 spinlock_unlock(&irq->lock);
     158                irq_spinlock_unlock(&irq->lock, false);
    159159        } else {
    160160                /* Spurious interrupt. */
  • kernel/arch/arm32/src/mach/beaglebone/beaglebone.c

    reb630cf rb67ce1ff  
    117117{
    118118        am335x_timer_intr_ack(&bbone.timer);
    119         spinlock_unlock(&irq->lock);
     119        irq_spinlock_unlock(&irq->lock, false);
    120120        clock();
    121         spinlock_lock(&irq->lock);
     121        irq_spinlock_lock(&irq->lock, false);
    122122}
    123123
     
    184184                /* The IRQ handler was found. */
    185185                irq->handler(irq);
    186                 spinlock_unlock(&irq->lock);
     186                irq_spinlock_unlock(&irq->lock, false);
    187187        } else {
    188188                printf("Spurious interrupt\n");
  • kernel/arch/arm32/src/mach/gta02/gta02.c

    reb630cf rb67ce1ff  
    146146                /* The IRQ handler was found. */
    147147                irq->handler(irq);
    148                 spinlock_unlock(&irq->lock);
     148                irq_spinlock_unlock(&irq->lock, false);
    149149        } else {
    150150                /* Spurious interrupt. */
     
    258258         * Release the lock, call clock() and reacquire the lock again.
    259259         */
    260         spinlock_unlock(&irq->lock);
     260        irq_spinlock_unlock(&irq->lock, false);
    261261        clock();
    262         spinlock_lock(&irq->lock);
     262        irq_spinlock_lock(&irq->lock, false);
    263263}
    264264
  • kernel/arch/arm32/src/mach/integratorcp/integratorcp.c

    reb630cf rb67ce1ff  
    197197         */
    198198
    199         spinlock_unlock(&irq->lock);
     199        irq_spinlock_unlock(&irq->lock, false);
    200200        clock();
    201         spinlock_lock(&irq->lock);
     201        irq_spinlock_lock(&irq->lock, false);
    202202
    203203}
     
    268268                                /* The IRQ handler was found. */
    269269                                irq->handler(irq);
    270                                 spinlock_unlock(&irq->lock);
     270                                irq_spinlock_unlock(&irq->lock, false);
    271271                        } else {
    272272                                /* Spurious interrupt. */
  • kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c

    reb630cf rb67ce1ff  
    9494{
    9595        bcm2835_timer_irq_ack(raspi.timer);
    96         spinlock_unlock(&irq->lock);
     96        irq_spinlock_unlock(&irq->lock, false);
    9797        clock();
    98         spinlock_lock(&irq->lock);
     98        irq_spinlock_lock(&irq->lock, false);
    9999}
    100100
     
    159159                /* The IRQ handler was found. */
    160160                irq->handler(irq);
    161                 spinlock_unlock(&irq->lock);
     161                irq_spinlock_unlock(&irq->lock, false);
    162162        } else {
    163163                /* Spurious interrupt. */
Note: See TracChangeset for help on using the changeset viewer.