client: apply CPU throttling to all tasks except non-CPU-intensive or app version is marked as no-throttle; in particular, apply it to GPU apps regardless of their CPU usage

This commit is contained in:
David Anderson 2013-11-24 16:07:19 -08:00
parent 5357952783
commit 1963f5c8cc
1 changed files with 0 additions and 5 deletions

View File

@ -1061,11 +1061,6 @@ void ACTIVE_TASK_SET::suspend_all(int reason) {
//
if (reason == SUSPEND_REASON_CPU_THROTTLE) {
if (atp->result->dont_throttle()) continue;
// if we're doing CPU throttling,
// don't suspend apps that use < .5 CPU (like GPU and NCI apps)
//
if (atp->app_version->avg_ncpus < .5) continue;
atp->preempt(REMOVE_NEVER);
continue;;
}