1/* 2 * Copyright (c) 2003-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 91 unchanged lines hidden (view full) --- 100 void 101 quiesceCycles(ThreadContext *tc, uint64_t cycles) 102 { 103 if (!tc->getCpuPtr()->params->do_quiesce || cycles == 0) 104 return; 105 106 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent(); 107 |
108 Tick resume = curTick + tc->getCpuPtr()->ticks(cycles); |
109 110 quiesceEvent->reschedule(resume, true); 111 112 DPRINTF(Quiesce, "%s: quiesceCycles(%d) until %d\n", 113 tc->getCpuPtr()->name(), cycles, resume); 114 115 tc->suspend(); 116 if (tc->getKernelStats()) --- 193 unchanged lines hidden --- |