AHCI test make sure all monitors are up
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 16 Jan 2017 11:44:51 +0000 (12:44 +0100)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 16 Jan 2017 11:44:51 +0000 (12:44 +0100)
Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

usr/drivers/ahcid/test.c

index 333bf08..e7b4ed8 100644 (file)
@@ -2,10 +2,12 @@
 #include "test.h"
 
 #include <stdarg.h>
+#include <barrelfish/deferred.h>
 #include <bench/bench.h>
 #include <devif/backends/blk/ahci_devq.h>
 #include <devif/queue_interface.h>
 
+
 static uint64_t finish_counter = 0;
 
 struct dma_mem {
@@ -20,6 +22,9 @@ void test_runner(int n, ...)
 {
     va_list arguments;
     va_start(arguments, n);
+    
+    // sleep for 5 sec
+    barrelfish_usleep(5000*1000);
 
     for (size_t i=0; i<n; i++) {
         enum AhciTest test = va_arg(arguments, enum AhciTest);