changeset 4ee66d8c1dd8 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=4ee66d8c1dd8
description:
sim: delete unused CheckSwapEvent code.
There's no way to even create one of these anymore.
diffstat:
src/sim/sim_events.cc | 33 ---------------------------------
src/sim/sim_events.hh | 14 --------------
2 files changed, 0 insertions(+), 47 deletions(-)
diffs (63 lines):
diff -r afe8476ee9e9 -r 4ee66d8c1dd8 src/sim/sim_events.cc
--- a/src/sim/sim_events.cc Fri Jan 07 21:50:29 2011 -0800
+++ b/src/sim/sim_events.cc Fri Jan 07 21:50:29 2011 -0800
@@ -123,36 +123,3 @@
{
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";
-}
diff -r afe8476ee9e9 -r 4ee66d8c1dd8 src/sim/sim_events.hh
--- a/src/sim/sim_events.hh Fri Jan 07 21:50:29 2011 -0800
+++ b/src/sim/sim_events.hh Fri Jan 07 21:50:29 2011 -0800
@@ -90,19 +90,5 @@
virtual const char *description() const;
};
-//
-// Event to check swap usage
-//
-class CheckSwapEvent : public Event
-{
- private:
- int interval;
-
- public:
- CheckSwapEvent(int ival);
- void process(); // process event
-
- virtual const char *description() const;
-};
#endif // __SIM_SIM_EVENTS_HH__
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev