scheduler.cc (13144:61e0f3230787) scheduler.cc (13145:5291e0747c7c)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 176 unchanged lines hidden (view full) ---

185 ew->throw_it();
186 }
187}
188
189void
190Scheduler::ready(Process *p)
191{
192 // Clump methods together to minimize context switching.
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 176 unchanged lines hidden (view full) ---

185 ew->throw_it();
186 }
187}
188
189void
190Scheduler::ready(Process *p)
191{
192 // Clump methods together to minimize context switching.
193 if (p->procKind() == ::sc_core::SC_METHOD_PROC_)
193 static bool cluster_methods = false;
194
195 if (cluster_methods && p->procKind() == ::sc_core::SC_METHOD_PROC_)
194 readyList.pushFirst(p);
195 else
196 readyList.pushLast(p);
197
198 scheduleReadyEvent();
199}
200
201void

--- 192 unchanged lines hidden ---
196 readyList.pushFirst(p);
197 else
198 readyList.pushLast(p);
199
200 scheduleReadyEvent();
201}
202
203void

--- 192 unchanged lines hidden ---