X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fintel_rdt.c;h=6beac7b42bc6fe02e375bd670103bd9c5e2e542e;hb=ef3c388980a1f84840db8acc8b8ef480cebe3f3e;hp=d1a0c51d9ae074b9f6406c90a16b3b6103acaeb9;hpb=2c3aa395cf8f5779341685f99377774c145d6f38;p=collectd.git diff --git a/src/intel_rdt.c b/src/intel_rdt.c index d1a0c51d..6beac7b4 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -478,10 +478,6 @@ static int rdt_preinit(void) { return (-ENOMEM); } - /* In case previous instance of the application was not closed properly - * call fini and ignore return code. */ - pqos_fini(); - struct pqos_config pqos = {.fd_log = -1, .callback_log = rdt_pqos_log, .context_log = NULL, @@ -512,6 +508,9 @@ static int rdt_preinit(void) { goto rdt_preinit_error2; } + /* Reset pqos monitoring groups registers */ + pqos_mon_reset(); + return (0); rdt_preinit_error2: