From 1dda7967dc66e8d3a22e3508fe85bebf099f5e9c Mon Sep 17 00:00:00 2001 From: Florian Hofer Date: Thu, 27 Jun 2024 16:04:33 +0200 Subject: [PATCH] orch manage pickPidInfoS fix CPU-change recomputeTimes only==-1 err full --- src/orchestrator/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/orchestrator/manage.c b/src/orchestrator/manage.c index 5a2355c7..e13d016c 100644 --- a/src/orchestrator/manage.c +++ b/src/orchestrator/manage.c @@ -924,9 +924,9 @@ pickPidInfoS(const void * addr, const struct ftrace_thread * fthread, uint64_t t item->mon.assigned = fthread->cpuno; // Removed from, should give no issues - if (0 > recomputeCPUTimes(CPU)) + if (-1 == recomputeCPUTimes(CPU)) // if -2 = CPU not found, i.e. affinity preference, no real affinity set yet, do nothing if (SM_DYNSIMPLE <= prgset->sched_mode) - pickPidReallocCPU(CPU, 0); + (void)pickPidReallocCPU(CPU, 0); if (0 <= CPU) item->mon.resched++; @@ -945,7 +945,7 @@ pickPidInfoS(const void * addr, const struct ftrace_thread * fthread, uint64_t t // recompute actual CPU, new tasks might be there now if (0 > recomputeCPUTimes(fthread->cpuno)) if (SM_DYNSIMPLE <= prgset->sched_mode) - pickPidReallocCPU(fthread->cpuno, 0); + (void)pickPidReallocCPU(fthread->cpuno, 0); // find PID switching from for (node_t * item = nhead; ((item)); item=item->next )