freebsd-ports/sysutils/x86info/files/patch-bench_benchmarks.c
Emanuel Haupt ffba9de11a Update sysutils/x86info to 1.16
PR:		86912
Submitted by:	Erik Greenwald <erik@smluc.org> (maintainer)

Approved by:	novel (mentor)
2005-10-05 14:40:25 +00:00

17 lines
503 B
C

--- bench/benchmarks.c.orig Tue Oct 4 19:22:20 2005
+++ bench/benchmarks.c Tue Oct 4 19:22:40 2005
@@ -1,6 +1,5 @@
#include <time.h>
#include <sys/time.h>
-#include <asm/unistd.h>
#include <sys/stat.h>
#include <stdio.h>
#include "../x86info.h"
@@ -13,7 +12,6 @@
if (show_bench != 1)
return;
- TIME(asm volatile("int $0x80" :"=a" (ret) :"0" (__NR_getppid)), "int 0x80");
TIME(asm volatile("cpuid": : :"ax", "dx", "cx", "bx"), "cpuid");
TIME(asm volatile("addl $1,0(%esp)"), "addl");