Commit a1ea0ca8 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

powerpc/selftests: Use gettid() instead of getppid() for null_syscall

parent e2c04316
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -14,6 +14,7 @@
#include <time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/time.h>
#include <sys/syscall.h>
#include <signal.h>
#include <signal.h>


static volatile int soak_done;
static volatile int soak_done;
@@ -121,7 +122,7 @@ static void do_null_syscall(unsigned long nr)
	unsigned long i;
	unsigned long i;


	for (i = 0; i < nr; i++)
	for (i = 0; i < nr; i++)
		getppid();
		syscall(__NR_gettid);
}
}


#define TIME(A, STR) \
#define TIME(A, STR) \