projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d299591
)
vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant
author
Eduardo Habkost
<ehabkost@redhat.com>
Tue, 18 Mar 2014 19:29:24 +0000
(16:29 -0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 19 Mar 2014 11:24:29 +0000
(13:24 +0200)
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index c8a5bfa95926281d51bc8de59f8b3bcba5072536..23e1dbd245b598463dff60df713530c9ab4ddb1f 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-1413,7
+1413,7
@@
static void smp_parse(QemuOpts *opts)
max_cpus = smp_cpus;
}
- if (max_cpus >
255
) {
+ if (max_cpus >
MAX_CPUMASK_BITS
) {
fprintf(stderr, "Unsupported number of maxcpus\n");
exit(1);
}