Skip to content

Commit 4a7e27e

Browse files
authored
Merge pull request #192 from intel-innersource/rdementi/perf-uncore-fixes
don't call init reg location and bus when perf uncore driver used
2 parents f25b92f + dc03eb4 commit 4a7e27e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cpucounters.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5754,15 +5754,14 @@ ServerPCICFGUncore::ServerPCICFGUncore(uint32 socket_, const PCM * pcm) :
57545754
, cpu_model(pcm->getCPUModel())
57555755
, qpi_speed(0)
57565756
{
5757-
initRegisterLocations(pcm);
5758-
initBuses(socket_, pcm);
5759-
57605757
if (pcm->useLinuxPerfForUncore())
57615758
{
57625759
initPerf(socket_, pcm);
57635760
}
57645761
else
57655762
{
5763+
initRegisterLocations(pcm);
5764+
initBuses(socket_, pcm);
57665765
initDirect(socket_, pcm);
57675766
}
57685767

0 commit comments

Comments
 (0)