summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-15 17:34:34 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-16 07:29:27 +0100
commitf311caf984a46b8629f891de5904af385486fa9e (patch)
treeda22a529af12b49f6f941593690e93242261b252 /cpukit/include
parentbsps/irq: Fix formatting (diff)
downloadrtems-f311caf984a46b8629f891de5904af385486fa9e.tar.bz2
bsps/irq: Improve affinity set handling
Restrict the affinity set to the set of online processors. Make sure the affinity set for an interrupt vector contains at least one online processor. Update #3269.
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/rtems/intr.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/include/rtems/rtems/intr.h b/cpukit/include/rtems/rtems/intr.h
index 573cdf6f17..c53cf694ba 100644
--- a/cpukit/include/rtems/rtems/intr.h
+++ b/cpukit/include/rtems/rtems/intr.h
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (C) 2008, 2021 embedded brains GmbH (http://www.embedded-brains.de)
+ * Copyright (C) 2008, 2022 embedded brains GmbH (http://www.embedded-brains.de)
* Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
*
* Redistribution and use in source and binary forms, with or without
@@ -1759,9 +1759,16 @@ rtems_status_code rtems_interrupt_get_affinity(
* interrupt vector has not been satisfied.
*
* @par Notes
+ * @parblock
* The rtems_interrupt_get_attributes() directive may be used to check if the
* processor affinity of an interrupt vector can be set.
*
+ * Only online processors of the affinity set specified by ``affinity_size``
+ * and ``affinity`` are considered by the directive. Other processors of the
+ * set are ignored. If the set contains no online processor, then the set is
+ * invalid and an error status is returned.
+ * @endparblock
+ *
* @par Constraints
* @parblock
* The following constraints apply to this directive: