Skip to content

Commit 2dfbd5f

Browse files
committed
Merge remote-tracking branch 'opcm-github/master'
Change-Id: I2e049be272ac0d51d972af2c925ccf2b9ae678b1
2 parents f4eb81a + 140c0fe commit 2dfbd5f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build_script:
1515
- cmake --build build --config Release --parallel
1616

1717
after_build:
18-
- cmd: 7z a pcm-all.zip %APPVEYOR_BUILD_FOLDER%\build\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\build\bin\Release\*.dll %APPVEYOR_BUILD_FOLDER%\build\src\Release\*.lib %APPVEYOR_BUILD_FOLDER%\build\src\Release\*.exp
18+
- cmd: 7z a pcm-all.zip %APPVEYOR_BUILD_FOLDER%\build\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\build\bin\Release\*.dll %APPVEYOR_BUILD_FOLDER%\build\src\Release\*.lib %APPVEYOR_BUILD_FOLDER%\build\src\Release\*.exp %APPVEYOR_BUILD_FOLDER%\src\windows\PCM-Service.exe.config
1919
artifacts:
2020
- path: pcm-all.zip
21-
name: pcm-all
21+
name: pcm-all

src/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ constexpr auto IA32_PQR_ASSOC = 0xc8f;
303303
constexpr auto IA32_QM_EVTSEL = 0xc8d;
304304
constexpr auto IA32_QM_CTR = 0xc8e;
305305

306+
#ifndef KERNEL
306307
constexpr auto PCM_INVALID_QOS_MONITORING_DATA = (std::numeric_limits<uint64>::max)();
308+
#endif
307309

308310
/* \brief Event Select Register format
309311
@@ -1445,7 +1447,9 @@ struct ICX_IIOPMUCNTCTLRegister
14451447

14461448
constexpr auto MSR_PACKAGE_THERM_STATUS = 0x01B1;
14471449
constexpr auto MSR_IA32_THERM_STATUS = 0x019C;
1450+
#ifndef KERNEL
14481451
constexpr auto PCM_INVALID_THERMAL_HEADROOM = (std::numeric_limits<int32_t>::min)();
1452+
#endif
14491453

14501454
constexpr auto MSR_IA32_BIOS_SIGN_ID = 0x8B;
14511455

src/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#endif
2828

2929
#ifndef _MSC_VER
30+
#include <unistd.h>
3031
#include <csignal>
3132
#include <ctime>
3233
#include <cmath>
@@ -39,7 +40,6 @@
3940
#ifdef __linux__
4041
#include <unistd.h>
4142
#endif
42-
4343
namespace pcm {
4444
std::string safe_getenv(const char* env);
4545
}

0 commit comments

Comments
 (0)