]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/simple_spin: use __ppc_yield() on all powerpc archs 14310/head
authorKefu Chai <kchai@redhat.com>
Tue, 4 Apr 2017 03:14:32 +0000 (11:14 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 4 Apr 2017 03:23:48 +0000 (11:23 +0800)
commit58e173c54d4077c3c773968f815a2005cdbb2e76
treec4134bbd490866edb956f2c049ee44f116b60b18
parent531118fbe854a3dc559cab8fb1235a6beb8d3c85
common/simple_spin: use __ppc_yield() on all powerpc archs

__ppc_yield() is declared in sys/platform/ppc.h by glibc, for better
portability we just use the inlined assembly here. the shared resource
hints are supported by PowerPC ISA 2.06 but on older PowerPC cores, they
are no-ops. so it's fine to do this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/simple_spin.cc