Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Corrected timed yield
Peter Dinda [Wed, 27 Jun 2012 02:24:38 +0000 (21:24 -0500)]
linux_module/palacios-stubs.c

index 78759d0..eea613b 100644 (file)
@@ -519,7 +519,10 @@ palacios_yield_cpu(void)
  */
 void palacios_yield_cpu_timed(unsigned int us)
 {
-    unsigned int jiffies = 1000000U * HZ / us;
+
+    unsigned int uspj = 1000000U/HZ;
+   
+    unsigned int jiffies = us/uspj + ((us%uspj) !=0);  // ceiling 
 
     set_current_state(TASK_INTERRUPTIBLE);