summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2008-08-29 21:51:13 -0400
committerDave Jones <davej@redhat.com>2008-08-29 21:51:13 -0400
commit4362251d546fed1f365818b65c21aa7553032970 (patch)
tree259d233f8b01fcb31744f14898f472398009e522 /bench
parent094cab878a354a80b81a14045660a41ddd80a6f2 (diff)
Only do CPU binding once per cpu.
Diffstat (limited to 'bench')
-rw-r--r--bench/MHz.c2
-rw-r--r--bench/benchmarks.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/bench/MHz.c b/bench/MHz.c
index 2aa9ad3..bc5f430 100644
--- a/bench/MHz.c
+++ b/bench/MHz.c
@@ -36,8 +36,6 @@ void estimate_MHz(struct cpudata *cpu)
return;
}
- bind_cpu(cpu);
-
if (signal(SIGALRM, sighandler) == SIG_ERR) {
printf("Some kind of signal failure.\n");
return;
diff --git a/bench/benchmarks.c b/bench/benchmarks.c
index 7b61ec4..c8e1d8b 100644
--- a/bench/benchmarks.c
+++ b/bench/benchmarks.c
@@ -16,8 +16,6 @@ void show_benchmarks(struct cpudata *cpu)
{
int tmp = 0;
- bind_cpu(cpu);
-
#ifdef __linux__
TIME(asm volatile("int $0x80" :"=a" (tmp) :"0" (__NR_getppid)), "int 0x80");
#endif