xen: export do_yield as vcpu_yield

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
CC: JBeulich@suse.com
This commit is contained in:
Stefano Stabellini authored and Ian Campbell committed 2014-07-28 13:44:15 +01:00
1 parent 3925eaef08
commit afac868e50
2 files changed
+4 -3

No files matched your search

+3 -3
View File
@@ -795,7 +795,7 @@ static long do_poll(struct sched_poll *sched_poll)
}
/* Voluntarily yield the processor for this allocation. */
static long do_yield(void)
long vcpu_yield(void)
{
struct vcpu * v=current;
spinlock_t *lock = vcpu_schedule_lock_irq(v);
@@ -888,7 +888,7 @@ long do_sched_op_compat(int cmd, unsigned long arg)
{
case SCHEDOP_yield:
{
ret = do_yield();
ret = vcpu_yield();
break;
}
@@ -925,7 +925,7 @@ ret_t do_sched_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg)
{
case SCHEDOP_yield:
{
ret = do_yield();
ret = vcpu_yield();
break;
}
+1
View File
@@ -639,6 +639,7 @@ int sched_id(void);
void sched_tick_suspend(void);
void sched_tick_resume(void);
void vcpu_wake(struct vcpu *v);
long vcpu_yield(void);
void vcpu_sleep_nosync(struct vcpu *v);
void vcpu_sleep_sync(struct vcpu *v);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.