File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,9 @@ constexpr auto IA32_PQR_ASSOC = 0xc8f;
303
303
constexpr auto IA32_QM_EVTSEL = 0xc8d ;
304
304
constexpr auto IA32_QM_CTR = 0xc8e ;
305
305
306
+ #ifndef KERNEL
306
307
constexpr auto PCM_INVALID_QOS_MONITORING_DATA = (std::numeric_limits<uint64>::max)();
308
+ #endif
307
309
308
310
/* \brief Event Select Register format
309
311
@@ -1445,7 +1447,9 @@ struct ICX_IIOPMUCNTCTLRegister
1445
1447
1446
1448
constexpr auto MSR_PACKAGE_THERM_STATUS = 0x01B1 ;
1447
1449
constexpr auto MSR_IA32_THERM_STATUS = 0x019C ;
1450
+ #ifndef KERNEL
1448
1451
constexpr auto PCM_INVALID_THERMAL_HEADROOM = (std::numeric_limits<int32_t >::min)();
1452
+ #endif
1449
1453
1450
1454
constexpr auto MSR_IA32_BIOS_SIGN_ID = 0x8B ;
1451
1455
Original file line number Diff line number Diff line change 27
27
#endif
28
28
29
29
#ifndef _MSC_VER
30
+ #include < unistd.h>
30
31
#include < csignal>
31
32
#include < ctime>
32
33
#include < cmath>
36
37
#include < map>
37
38
#include < unordered_map>
38
39
39
- #ifdef __linux__
40
- #include < unistd.h>
41
- #endif
42
-
43
40
namespace pcm {
44
41
std::string safe_getenv (const char * env);
45
42
}
You can’t perform that action at this time.
0 commit comments