Revision
68
Author
robert@fledge.watson.org
Date
2009-10-28 04:22:58 -0700 (Wed, 28 Oct 2009)

Log Message

Rather than generate an error if there's no supported way to probe CPU
count, generate a warning, and set the CPU limit to 1.

Submitted by:	Paolo Bonzini <bonzini@gnu.org>

Modified Paths

Diff

Modified: trunk/src/queue.c (67 => 68)


--- trunk/src/queue.c	2009-10-28 11:05:31 UTC (rev 67)
+++ trunk/src/queue.c	2009-10-28 11:22:58 UTC (rev 68)
@@ -483,7 +483,10 @@
 	    _dispatch_hw_config.cc_max_physical =
 	    _dispatch_hw_config.cc_max_active;
 #else
-#error "_dispatch_queue_set_width_init: no supported way to query CPU count"
+#warning "_dispatch_queue_set_width_init: no supported way to query CPU count"
+	_dispatch_hw_config.cc_max_logical =
+	    _dispatch_hw_config.cc_max_physical =
+	    _dispatch_hw_config.cc_max_active = 1;
 #endif
 }