Skip to content

Commit

Permalink
intel_rdt: reset pqos monitoring groups on initialization.
Browse files Browse the repository at this point in the history
Monitoring groups fail to start when intel_rdt plugin has unpredictably
stopped without unsubscribing from the pqos library. Reset pqos monitoring
groups registers after pqos library is initialized.

Change-Id: I231ba44e531deb8791f34730e7572bfe0cbd825d
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
  • Loading branch information
rkorynkx committed Dec 8, 2016
1 parent 2c3aa39 commit ef3c388
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/intel_rdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ef3c388

Please sign in to comment.