diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-21 18:46:22 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-21 18:46:22 -0300 |
commit | 48dc02fcfc8aea4034a584dca99fc2f566d6141c (patch) | |
tree | a7ae6d959dae4b4e4b35f38445154f5c99f1edae /testing/thermald/ppc64le.patch | |
parent | 5ce0757f264bcd7d0c8941f48e1d9b473aa83844 (diff) | |
download | aports-48dc02fcfc8aea4034a584dca99fc2f566d6141c.tar.bz2 aports-48dc02fcfc8aea4034a584dca99fc2f566d6141c.tar.xz |
testing/thermald: fix ppc64le build
Diffstat (limited to 'testing/thermald/ppc64le.patch')
-rw-r--r-- | testing/thermald/ppc64le.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/thermald/ppc64le.patch b/testing/thermald/ppc64le.patch index 52ca3adcaf..874f5bede1 100644 --- a/testing/thermald/ppc64le.patch +++ b/testing/thermald/ppc64le.patch @@ -1,5 +1,5 @@ diff --git a/src/thd_engine.cpp b/src/thd_engine.cpp -index 82882dd..64e4db2 100644 +index 82882dd..51266d3 100644 --- a/src/thd_engine.cpp +++ b/src/thd_engine.cpp @@ -35,7 +35,9 @@ @@ -17,12 +17,12 @@ index 82882dd..64e4db2 100644 int cthd_engine::check_cpu_id() { -#ifndef ANDROID -+#ifndef ANDROID && !defined(__powerpc__) ++#if !defined(ANDROID) && !defined(__powerpc__) // Copied from turbostat program unsigned int ebx, ecx, edx, max_level; unsigned int fms, family, model, stepping; diff --git a/src/thd_engine_default.cpp b/src/thd_engine_default.cpp -index 3454170..e75fdaf 100644 +index 3454170..170a148 100644 --- a/src/thd_engine_default.cpp +++ b/src/thd_engine_default.cpp @@ -795,14 +795,16 @@ void cthd_engine_default::workarounds() @@ -39,7 +39,7 @@ index 3454170..e75fdaf 100644 void cthd_engine_default::workaround_rapl_mmio_power(void) { -#ifndef ANDROID -+#ifndef ANDROID && !defined(__powerpc__) ++#if !defined(ANDROID) && !defined(__powerpc__) int map_fd; void *rapl_mem; unsigned char *rapl_pkg_pwr_addr; |