cli_monitor: limit request yields to children

Don't request resource yieldings from children that are in a resource request
themselfs to lower needless system load.
This commit is contained in:
Stefan Kalkowski 2013-10-18 14:18:59 +02:00 committed by Christian Helmuth
parent d4922f9071
commit e559fb7df9

View File

@ -134,6 +134,9 @@ class Child : public List<Child>::Element, Genode::Child_policy
*/
void yield(size_t amount, bool greedy)
{
if (requested_ram_quota())
return; /* resource request in flight */
char buf[128];
snprintf(buf, sizeof(buf), "ram_quota=%zd", amount);
_withdraw_on_yield_response = greedy;