Implement cycle profiling for ppc64

Thanks to Frédéric Bonnard <frediz@debian.org>
This commit is contained in:
Robin Gareus 2022-10-17 16:02:12 +02:00
parent a9b785d89c
commit f6cc01d4f5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ static inline cycles_t get_cycles (void)
#elif defined(__powerpc64__)
#include <sys/platform/ppc.h>
typedef uint64_t cycles_t;
static inline cycles_t get_cycles(void)
{
#warning You are compiling libardour on a platform for which ardour/cycles.h needs work
return 0;
return __ppc_get_timebase();
}
#elif defined(__powerpc__)