summaryrefslogtreecommitdiff
path: root/src/sim/sim_events.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2011-01-07 21:50:29 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2011-01-07 21:50:29 -0800
commit030736a69b238f1da7f9ed6409ce5ab9e094c9fb (patch)
tree54c8d195e511f4fa1ac8e36142e283539e67ca3c /src/sim/sim_events.cc
parentdf9f99567d43c9dfcecc625dce748c561699b307 (diff)
downloadgem5-030736a69b238f1da7f9ed6409ce5ab9e094c9fb.tar.xz
sim: delete unused CheckSwapEvent code.
There's no way to even create one of these anymore.
Diffstat (limited to 'src/sim/sim_events.cc')
-rw-r--r--src/sim/sim_events.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/sim/sim_events.cc b/src/sim/sim_events.cc
index 8c706382d..d53fca3c3 100644
--- a/src/sim/sim_events.cc
+++ b/src/sim/sim_events.cc
@@ -123,36 +123,3 @@ CountedExitEvent::description() const
{
return "counted exit";
}
-
-CheckSwapEvent::CheckSwapEvent(int ival)
- : interval(ival)
-{
- mainEventQueue.schedule(this, curTick + interval);
-}
-
-void
-CheckSwapEvent::process()
-{
- /* Check the amount of free swap space */
- long swap;
-
- /* returns free swap in KBytes */
- swap = procInfo("/proc/meminfo", "SwapFree:");
-
- if (swap < 1000)
- ccprintf(cerr, "\a\a\aWarning! Swap space is low (%d)\n", swap);
-
- if (swap < 100) {
- cerr << "\a\aAborting Simulation! Inadequate swap space!\n\n";
- exitSimLoop("Lack of swap space");
- }
-
- assert(getFlags(IsMainQueue));
- mainEventQueue.schedule(this, curTick + interval);
-}
-
-const char *
-CheckSwapEvent::description() const
-{
- return "check swap";
-}