From: Ceph Maintainers Date: Sun, 30 Jul 2017 09:48:17 +0000 (+0100) Subject: fix-cycles-arch X-Git-Tag: archive/raspbian/12.2.8+dfsg1-5+rpi1~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=04276faa1028dfd776e3834388cdb17a60f96a78;p=ceph.git fix-cycles-arch Gbp-Pq: Name fix-cycles-arch.patch --- diff --git a/src/common/Cycles.cc b/src/common/Cycles.cc index 656f08b40..4d04eed9e 100644 --- a/src/common/Cycles.cc +++ b/src/common/Cycles.cc @@ -57,6 +57,10 @@ void Cycles::init() 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.