Changeset 011efee8 in rtems


Ignore:
Timestamp:
Apr 25, 2017, 7:10:03 AM (4 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
5, master
Children:
229c4249
Parents:
fa27fe5c
git-author:
Daniel Hellstrom <daniel@…> (04/25/17 07:10:03)
git-committer:
Daniel Hellstrom <daniel@…> (05/14/17 10:31:56)
Message:

leon, irq: single CPU SMP configuration does not need IPI ISR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/irq/irq-shared.c

    rfa27fe5c r011efee8  
    4848#if defined(LEON3) && \
    4949    (defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING))
    50     /* Don't install IRQ handler on IPI interrupt */
    51     if (i == LEON3_mp_irq)
    52       continue;
     50    /* Don't install IRQ handler on IPI interrupt. An SMP kernel with max one
     51     * CPU does not use IPIs
     52     */
     53#ifdef RTEMS_SMP
     54    if (rtems_configuration_get_maximum_processors() > 1)
     55#endif
     56      if (i == LEON3_mp_irq)
     57        continue;
    5358#endif
    5459    vector = SPARC_ASYNCHRONOUS_TRAP(i) + 0x10;
Note: See TracChangeset for help on using the changeset viewer.