Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99535
b: refs/heads/master
c: 349c709
h: refs/heads/master
i:
  99533: 7423086
  99531: 10b02aa
  99527: 935a1f8
  99519: 0f1fb41
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Thomas Gleixner committed May 27, 2008
1 parent 2e96e1a commit 6e15d1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 7b1333aa4cb546ddeb9c05098a53d9a777623a05
refs/heads/master: 349c709f42453707f74bece0d9d35ee5b3842893
6 changes: 4 additions & 2 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static void xen_irq_enable(void)
static void xen_safe_halt(void)
{
/* Blocking includes an implicit local_irq_enable(). */
if (HYPERVISOR_sched_op(SCHEDOP_block, 0) != 0)
if (HYPERVISOR_sched_op(SCHEDOP_block, NULL) != 0)
BUG();
}

Expand Down Expand Up @@ -1138,11 +1138,13 @@ static const struct smp_ops xen_smp_ops __initdata = {

static void xen_reboot(int reason)
{
struct sched_shutdown r = { .reason = reason };

#ifdef CONFIG_SMP
smp_send_stop();
#endif

if (HYPERVISOR_sched_op(SCHEDOP_shutdown, reason))
if (HYPERVISOR_sched_op(SCHEDOP_shutdown, &r))
BUG();
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/include/asm-x86/xen/hypercall.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ HYPERVISOR_fpu_taskswitch(int set)
}

static inline int
HYPERVISOR_sched_op(int cmd, unsigned long arg)
HYPERVISOR_sched_op(int cmd, void *arg)
{
return _hypercall2(int, sched_op, cmd, arg);
return _hypercall2(int, sched_op_new, cmd, arg);
}

static inline long
Expand Down

0 comments on commit 6e15d1b

Please sign in to comment.