diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2013-03-12 11:57:42 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2013-03-12 12:02:20 -0400 |
commit | 93ffe5be8fd1954bbfe5a04e55b81ac1d83d2de7 (patch) | |
tree | d77875e14dd822680ed168816286d994d2d3d93e /bin | |
parent | 1ff4fc699f01f0ad1359fad48b00c9d3be1b28b4 (diff) |
Auto-CPU-affinity from part./cluster assignment.
This patch replaces be_migrate_to() with several
be_migrate_*() APIs to automatically assign CPU affinity
masks from a task's partition (or cluster) assignment.
Routines are release-master-aware such that the release
master (if one exists) will NOT be included in the
task's affinity mask. (Note that release-master
avoidance may be overridden by calling
__be_migrate_thread_to_cluster().)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/rt_launch.c | 2 | ||||
-rw-r--r-- | bin/rtspin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/rt_launch.c b/bin/rt_launch.c index 16d6ed7..97d9df9 100644 --- a/bin/rt_launch.c +++ b/bin/rt_launch.c | |||
@@ -109,7 +109,7 @@ int main(int argc, char** argv) | |||
109 | info.argv = argv + optind + 2; | 109 | info.argv = argv + optind + 2; |
110 | info.wait = wait; | 110 | info.wait = wait; |
111 | if (migrate) { | 111 | if (migrate) { |
112 | ret = be_migrate_to(cpu); | 112 | ret = be_migrate_to_cpu(cpu); |
113 | if (ret < 0) | 113 | if (ret < 0) |
114 | bail_out("could not migrate to target partition"); | 114 | bail_out("could not migrate to target partition"); |
115 | } | 115 | } |
diff --git a/bin/rtspin.c b/bin/rtspin.c index 657a94c..5f12930 100644 --- a/bin/rtspin.c +++ b/bin/rtspin.c | |||
@@ -321,7 +321,7 @@ int main(int argc, char** argv) | |||
321 | duration += period_ms * 0.001 * (num_jobs - 1); | 321 | duration += period_ms * 0.001 * (num_jobs - 1); |
322 | 322 | ||
323 | if (migrate) { | 323 | if (migrate) { |
324 | ret = be_migrate_to(cpu); | 324 | ret = be_migrate_to_cpu(cpu); |
325 | if (ret < 0) | 325 | if (ret < 0) |
326 | bail_out("could not migrate to target partition"); | 326 | bail_out("could not migrate to target partition"); |
327 | } | 327 | } |