aboutsummaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-05-17 09:44:56 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-05-17 09:44:56 -0400
commit8ba27be920e6bd47442e33946783a38c0fa37356 (patch)
tree2451465ba56fa8f2b79921644d9b1edb620d25c4 /native/src
parentc2e3e08ef2ce90237b7b50efd0adc1e2848a3729 (diff)
C++: move spinlock bounds to corresponding implementations
Part of refactoring sharedres.cpp.
Diffstat (limited to 'native/src')
-rw-r--r--native/src/blocking/clust-omlp.cpp9
-rw-r--r--native/src/blocking/rw-phase-fair.cpp9
-rw-r--r--native/src/sharedres.cpp24
3 files changed, 18 insertions, 24 deletions
diff --git a/native/src/blocking/clust-omlp.cpp b/native/src/blocking/clust-omlp.cpp
index 892608f..241f7c9 100644
--- a/native/src/blocking/clust-omlp.cpp
+++ b/native/src/blocking/clust-omlp.cpp
@@ -74,6 +74,15 @@ BlockingBounds* clustered_omlp_bounds(const ResourceSharingInfo& info,
74 return _results; 74 return _results;
75} 75}
76 76
77BlockingBounds* task_fair_mutex_bounds(const ResourceSharingInfo& info,
78 unsigned int procs_per_cluster,
79 int dedicated_irq)
80{
81 // These are structurally equivalent. Therefore, no need to reimplement
82 // everything from scratch.
83 return clustered_omlp_bounds(info, procs_per_cluster, dedicated_irq);
84}
85
77static void add_blocking(LimitedContentionSet &lcs, 86static void add_blocking(LimitedContentionSet &lcs,
78 const ContentionSet& cont, 87 const ContentionSet& cont,
79 unsigned long interval, 88 unsigned long interval,
diff --git a/native/src/blocking/rw-phase-fair.cpp b/native/src/blocking/rw-phase-fair.cpp
index d7705d7..154f862 100644
--- a/native/src/blocking/rw-phase-fair.cpp
+++ b/native/src/blocking/rw-phase-fair.cpp
@@ -222,3 +222,12 @@ BlockingBounds* clustered_rw_omlp_bounds(const ResourceSharingInfo& info,
222 222
223 return _results; 223 return _results;
224} 224}
225
226BlockingBounds* phase_fair_rw_bounds(const ResourceSharingInfo& info,
227 unsigned int procs_per_cluster,
228 int dedicated_irq)
229{
230 // These are structurally equivalent. Therefore, no need to reimplement
231 // everything from scratch.
232 return clustered_rw_omlp_bounds(info, procs_per_cluster, dedicated_irq);
233}
diff --git a/native/src/sharedres.cpp b/native/src/sharedres.cpp
index 5c8acee..1fbb452 100644
--- a/native/src/sharedres.cpp
+++ b/native/src/sharedres.cpp
@@ -471,27 +471,3 @@ void merge_rw_requests(const TaskInfo &tsk, RWCounts &counts)
471 } 471 }
472 } 472 }
473} 473}
474
475
476
477
478BlockingBounds* task_fair_mutex_bounds(const ResourceSharingInfo& info,
479 unsigned int procs_per_cluster,
480 int dedicated_irq)
481{
482 // These are structurally equivalent. Therefore, no need to reimplement
483 // everything from scratch.
484 return clustered_omlp_bounds(info, procs_per_cluster, dedicated_irq);
485}
486
487
488BlockingBounds* phase_fair_rw_bounds(const ResourceSharingInfo& info,
489 unsigned int procs_per_cluster,
490 int dedicated_irq)
491{
492 // These are structurally equivalent. Therefore, no need to reimplement
493 // everything from scratch.
494 return clustered_rw_omlp_bounds(info, procs_per_cluster, dedicated_irq);
495}
496
497