Skip to content

Commit dc03eb4

Browse files
committed
don't call init reg location and bus when perf uncore driver used
Change-Id: Id2e691b799b26f0b7e827f2ee883a810070373a2
1 parent f25b92f commit dc03eb4

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)