Changeset 8927c0f in rtems


Ignore:
Timestamp:
Apr 11, 2017, 11:55:02 AM (3 years ago)
Author:
Martin Aberg <maberg@…>
Branches:
master
Children:
998e34a
Parents:
256e083f
git-author:
Martin Aberg <maberg@…> (04/11/17 11:55:02)
git-committer:
Daniel Hellstrom <daniel@…> (05/02/17 10:34:49)
Message:

leon, gptimer: offset intnum with subtimer index

If separate interrupts are not available, then do not add the timer hardware
index number when configuring interrupt affinity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/timer/gptimer.c

    r256e083f r8927c0f  
    445445#if RTEMS_SMP
    446446        if (flags & TLIB_FLAGS_BROADCAST) {
    447                 drvmgr_interrupt_set_affinity(priv->dev, timer->tindex,
     447                int tindex = 0;
     448
     449                if (priv->separate_interrupt) {
     450                        /* Offset interrupt number with HW subtimer index */
     451                        tindex = timer->tindex;
     452                }
     453                drvmgr_interrupt_set_affinity(priv->dev, tindex,
    448454                                              _SMP_Online_processors);
    449455        }
Note: See TracChangeset for help on using the changeset viewer.