summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-03-02 09:33:47 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-03-02 09:33:47 +0000
commit62c2d26768b51a6bcc3fdffdc4606ada2b3494e1 (patch)
tree5b726452c85d909264611f1593930d07c88ca8a7
parentebe7b0745e3ba2fe60cb0f1d1975a321bbce23dc (diff)
only warm up if runing all tests
SVN revision: 57467
-rw-r--r--src/bin/ui.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 1fe2cdf..041f92f 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -582,11 +582,14 @@ _ui_setup(void)
582 sync(); 582 sync();
583#endif 583#endif
584 /* warm up the cpu with some spinning */ 584 /* warm up the cpu with some spinning */
585 t0 = time(NULL); 585 if (run_all)
586 for (;;)
587 { 586 {
588 t = time(NULL); 587 t0 = time(NULL);
589 if (t - t0 > 2) break; 588 for (;;)
589 {
590 t = time(NULL);
591 if (t - t0 > 2) break;
592 }
590 } 593 }
591 594
592 if (run_all) 595 if (run_all)