Package: ceph / 10.2.5-6~bpo8+1

fix-cycles-arch.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Enable high precision clock for PPC + fallback
 This code is only used for benchmarking so warning and
 fallback if architecture does not have support.
Author: James Page <james.page@ubuntu.com>
Forwarded: no

--- a/src/common/Cycles.cc
+++ b/src/common/Cycles.cc
@@ -57,6 +57,10 @@
   if (rdtsc() == 0)
     return;
 
+  // Skip initialization if rtdsc is not implemented
+  if (rdtsc() == 0)
+    return;
+
   // Compute the frequency of the fine-grained CPU timer: to do this,
   // take parallel time readings using both rdtsc and gettimeofday.
   // After 10ms have elapsed, take the ratio between these readings.