]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/Cycles.cc: skip initialization if rdtsc is not implemented 4839/head
authorBoris Ranto <branto@redhat.com>
Wed, 3 Jun 2015 10:24:48 +0000 (12:24 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 4 Jun 2015 07:20:25 +0000 (09:20 +0200)
commit35c5fd0091fc4d63b21207fb94e46b343519fd56
treef1574f2403dac305423ea4ad05132a4870bed5b8
parent3ca1b50975498ec8c19c47e014eeddd2d2dbb352
common/Cycles.cc: skip initialization if rdtsc is not implemented

The Cycles initialization gets stuck in infinite loop if rdtsc is not
implemented. This patch fixes the issue by quitting the initialization
if rtdsc fails.

The patch was cherry-picked from ubuntu patch by James Page, see

https://bugzilla.redhat.com/show_bug.cgi?id=1222286

for more details on the patch.

Signed-off-by: James Page <james.page@ubuntu.com>
src/common/Cycles.cc