aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/profile_utils/cpu_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/profile_utils/cpu_utils.h')
-rw-r--r--tensorflow/core/platform/profile_utils/cpu_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/platform/profile_utils/cpu_utils.h b/tensorflow/core/platform/profile_utils/cpu_utils.h
index 8979a40ea1..5d215b4804 100644
--- a/tensorflow/core/platform/profile_utils/cpu_utils.h
+++ b/tensorflow/core/platform/profile_utils/cpu_utils.h
@@ -97,7 +97,7 @@ class CpuUtils {
// Return cycle counter frequency.
// As this method caches the cpu frequency internally,
// the first call will incur overhead, but not subsequent calls.
- #if defined(__powerpc__) || defined(__ppc__) && ( __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+ #if (defined(__powerpc__) || defined(__ppc__) && ( __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)) || (defined(__s390x__))
static uint64 GetCycleCounterFrequency();
#else
static int64 GetCycleCounterFrequency();