kvm: bios: prevent compiler from caching cpu count while starting up smp
commite331020de867bb9f247b1e063464be35472e959a
authorAvi Kivity <avi@redhat.com>
Wed, 24 Dec 2008 14:23:33 +0000 (24 16:23 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 24 Dec 2008 14:23:33 +0000 (24 16:23 +0200)
treee85fef82741fd4c2b2f3be707eaab0b6c9baa6d6
parent960057b5bd3f5c75a9de60522258a8b5b616ecdb
kvm: bios: prevent compiler from caching cpu count while starting up smp

Other cpus are updating the count in parallel; if we get bad timing we might
not notice them starting up and hang.

Signed-off-by: Avi Kivity <avi@redhat.com>
kvm/bios/rombios32.c