X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Farch%2Fppc.c;fp=src%2Fceph%2Fsrc%2Farch%2Fppc.c;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=f21e2fe17001562f37bd4352c790836b0a30c039;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/arch/ppc.c b/src/ceph/src/arch/ppc.c deleted file mode 100644 index f21e2fe..0000000 --- a/src/ceph/src/arch/ppc.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Copyright (C) 2017 International Business Machines Corp. - * All rights reserved. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. - */ -#include "arch/ppc.h" -#include "arch/probe.h" - -/* flags we export */ -int ceph_arch_ppc_crc32 = 0; - -#include - -#if __linux__ && __powerpc64__ -#include -#include -#endif /* __linux__ && __powerpc64__ */ - -#ifndef PPC_FEATURE2_VEC_CRYPTO -#define PPC_FEATURE2_VEC_CRYPTO 0x02000000 -#endif - -#ifndef AT_HWCAP2 -#define AT_HWCAP2 26 -#endif - -int ceph_arch_ppc_probe(void) -{ - ceph_arch_ppc_crc32 = 0; - -#if __linux__ && __powerpc64__ - if (getauxval(AT_HWCAP2) & PPC_FEATURE2_VEC_CRYPTO) ceph_arch_ppc_crc32 = 1; -#endif /* __linux__ && __powerpc64__ */ - - return 0; -} -