diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-05 08:16:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-09 08:06:46 +0200 |
commit | f9219db2a95c8285d1be22092572b4236bfe6488 (patch) | |
tree | c168ac7fdf7458cea6d7146584b2adb38d47f6a1 /bsps/riscv/griscv/irq/irq.c | |
parent | rtems: Add rtems_scheduler_get_processor() (diff) | |
download | rtems-f9219db2a95c8285d1be22092572b4236bfe6488.tar.bz2 |
rtems: Add rtems_scheduler_get_processor_maximum()
Add rtems_scheduler_get_processor_maximum() as a replacement for
rtems_get_processor_count(). The rtems_get_processor_count() is a bit
orphaned. Adopt it by the Scheduler Manager. The count is also
misleading, since the processor set may have gaps and the actual count
of online processors may be less than the value returned by
rtems_get_processor_count().
Update #3732.
Diffstat (limited to 'bsps/riscv/griscv/irq/irq.c')
-rw-r--r-- | bsps/riscv/griscv/irq/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsps/riscv/griscv/irq/irq.c b/bsps/riscv/griscv/irq/irq.c index 721cd98ffe..e3fc8c310f 100644 --- a/bsps/riscv/griscv/irq/irq.c +++ b/bsps/riscv/griscv/irq/irq.c @@ -108,7 +108,7 @@ void bsp_interrupt_get_affinity( Processor_mask *affinity ) { - uint32_t cpu_count = rtems_get_processor_count(); + uint32_t cpu_count = rtems_scheduler_get_processor_maximum(); uint32_t cpu_index; _Processor_mask_Zero(affinity); @@ -126,7 +126,7 @@ void bsp_interrupt_set_affinity( ) { uint32_t unmasked = 0; - uint32_t cpu_count = rtems_get_processor_count(); + uint32_t cpu_count = rtems_scheduler_get_processor_maximum(); uint32_t cpu_index; for (cpu_index = 0; cpu_index < cpu_count; ++cpu_index) { |