File userspace-rcu-ppc64le.patch of Package userspace-rcu

Index: userspace-rcu-0.8.1/urcu/arch/ppc.h
===================================================================
--- userspace-rcu-0.8.1.orig/urcu/arch/ppc.h
+++ userspace-rcu-0.8.1/urcu/arch/ppc.h
@@ -80,7 +80,7 @@ extern "C" {
 
 typedef unsigned long long cycles_t;
 
-#ifdef __powerpc64__
+#if defined(__powerpc64__) || defined(__powerpc64le__)
 static inline cycles_t caa_get_cycles(void)
 {
 	return (cycles_t) mftb();
Index: userspace-rcu-0.8.1/configure
===================================================================
--- userspace-rcu-0.8.1.orig/configure
+++ userspace-rcu-0.8.1/configure
@@ -7148,6 +7148,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  ppc*-*linux*|powerpc*-*linux*)
 	    LD="${LD-ld} -m elf64ppc"
 	    ;;
+	  ppc*le-*linux*|powerpc*le-*linux*)
+	    LD="${LD-ld} -m elf64ppc"
+	    ;;
 	  s390*-*linux*|s390*-*tpf*)
 	    LD="${LD-ld} -m elf64_s390"
 	    ;;
@@ -12665,6 +12668,8 @@ case $host_cpu in #(
     ARCHTYPE="ppc" ;; #(
   powerpc64) :
     ARCHTYPE="ppc" ;; #(
+  powerpc64le) :
+    ARCHTYPE="ppc" ;; #(
   ppc) :
     ARCHTYPE="ppc" ;; #(
   s390) :
openSUSE Build Service is sponsored by