#1826 closed enhancement (fixed)
Add SMP Helper Methods to Classic API
Reported by: | Joel Sherrill | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | score | Version: | 4.11 |
Severity: | minor | Keywords: | |
Cc: | jennifer.averett@…, gedare@… | Blocked By: | |
Blocking: |
Description
This patch adds three minor methods to assist in SMP configurations:
+ rtems_smp_get_number_of_cores - actual number of cores in system
+ rtems_configuration_get_smp_maximum_processors - configured maximum
+ rtems_smp_get_current_core - current core number
rtems_configuration_get_smp_maximum_processors() follows the naming pattern of other methods which return user configuration values.
The others allow rtems_XXX access to otherwise private information.
Attachments (1)
Change History (6)
comment:1 Changed on 06/27/11 at 20:18:13 by Joel Sherrill
Cc: | Jennifer Averett added |
---|
comment:2 Changed on 06/27/11 at 20:18:22 by Joel Sherrill
Cc: | giddyup44@… added |
---|
Changed on 06/27/11 at 20:19:17 by Joel Sherrill
Attachment: | pr1826.diff added |
---|
comment:3 Changed on 06/28/11 at 19:39:49 by Joel Sherrill
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed on 06/28/11 at 22:19:03 by Gedare Bloom
Replying to comment:4:
Replying to comment:3:
I didn't see the new functions, I presume these are in a new file. I will check
the vc list.
Macros mostly. cpukit/rtems/include/rtems/rtems/smp.h
They seem reasonable. I haven't used macros exactly like this before, but I suspect it would be a good idea to put a (const) cast so the variables are "protected."
comment:5 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
First version for review