Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174421
b: refs/heads/master
c: 3905bb2
h: refs/heads/master
i:
  174419: b6726b4
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Dec 3, 2009
1 parent f1ef19e commit 4b12510
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be012920ecba161ad20303a3f6d9e96c58cf97c7
refs/heads/master: 3905bb2aa7bb801b31946b37a4635ebac4009051
25 changes: 11 additions & 14 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,26 +138,23 @@ static void xen_vcpu_setup(int cpu)
*/
void xen_vcpu_restore(void)
{
if (have_vcpu_info_placement) {
int cpu;
int cpu;

for_each_online_cpu(cpu) {
bool other_cpu = (cpu != smp_processor_id());
for_each_online_cpu(cpu) {
bool other_cpu = (cpu != smp_processor_id());

if (other_cpu &&
HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL))
BUG();
if (other_cpu &&
HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL))
BUG();

xen_setup_runstate_info(cpu);
xen_setup_runstate_info(cpu);

if (have_vcpu_info_placement)
xen_vcpu_setup(cpu);

if (other_cpu &&
HYPERVISOR_vcpu_op(VCPUOP_up, cpu, NULL))
BUG();
}

BUG_ON(!have_vcpu_info_placement);
if (other_cpu &&
HYPERVISOR_vcpu_op(VCPUOP_up, cpu, NULL))
BUG();
}
}

Expand Down

0 comments on commit 4b12510

Please sign in to comment.