From 8314e111dd60cfd26772954f50fa395162c98c1b Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 21 Aug 2008 06:32:59 +0000 Subject: [PATCH] update test git-svn-id: http://ltt.polymtl.ca/svn@3051 04897980-b3bd-0310-b5e0-8ef037075253 --- trunk/tests/kernel/test-wbias-rwlock.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/trunk/tests/kernel/test-wbias-rwlock.c b/trunk/tests/kernel/test-wbias-rwlock.c index 4a42a07b..eb4f99b1 100644 --- a/trunk/tests/kernel/test-wbias-rwlock.c +++ b/trunk/tests/kernel/test-wbias-rwlock.c @@ -418,7 +418,8 @@ static int interrupt_reader_thread(void *data) for_each_online_cpu(i) { if (!per_cpu(int_ipi_nr, i)) continue; - per_cpu(int_delayavg, i) /= per_cpu(int_ipi_nr, i); + per_cpu(int_ldelayavg, i) /= per_cpu(int_ipi_nr, i); + per_cpu(int_udelayavg, i) /= per_cpu(int_ipi_nr, i); printk("interrupt readers on CPU %i, " "lock delay [min,avg,max] %llu,%llu,%llu cycles\n", i, @@ -514,9 +515,9 @@ static int writer_thread(void *data) printk("writer_thread/%lu iterations : %lu, " "lock delay [min,avg,max] %llu,%llu,%llu cycles\n", (unsigned long)data, iter, - calibrate_cycles(delaymin), - calibrate_cycles(delayavg), - calibrate_cycles(delaymax)); + calibrate_cycles(ldelaymin), + calibrate_cycles(ldelayavg), + calibrate_cycles(ldelaymax)); printk("writer_thread/%lu iterations : %lu, " "unlock delay [min,avg,max] %llu,%llu,%llu cycles\n", (unsigned long)data, iter, -- 2.34.1