Changeset 4e686261 in rtems


Ignore:
Timestamp:
Feb 7, 2019, 10:13:01 AM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
26333f2a
Parents:
fbd08066
git-author:
Sebastian Huber <sebastian.huber@…> (02/07/19 10:13:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/07/19 10:13:59)
Message:

bsps/irq: Fix interrupt server init (SMP)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/shared/irq/irq-server.c

    rfbd08066 r4e686261  
    88
    99/*
    10  * Copyright (c) 2009, 2017 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2009, 2019 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    551551#if defined(RTEMS_SMP)
    552552    sc = rtems_scheduler_ident_by_processor(cpu_index, &scheduler);
    553     _Assert(sc == RTEMS_SUCCESSFUL);
     553    if (sc != RTEMS_SUCCESSFUL) {
     554      /* Do not start an interrupt server on a processor without a scheduler */
     555      continue;
     556    }
    554557
    555558    sc = rtems_task_set_scheduler(s->server, scheduler, priority);
    556559    _Assert(sc == RTEMS_SUCCESSFUL);
    557560
     561    /* Set the task to processor affinity on a best-effort basis */
    558562    CPU_ZERO(&cpu);
    559563    CPU_SET(cpu_index, &cpu);
    560     sc = rtems_task_set_affinity(s->server, sizeof(cpu), &cpu);
    561     _Assert(sc == RTEMS_SUCCESSFUL);
     564    (void) rtems_task_set_affinity(s->server, sizeof(cpu), &cpu);
    562565#endif
    563566
Note: See TracChangeset for help on using the changeset viewer.