xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [question] bug in cpu_schedule_up?
@ 2012-01-18  8:13 Kai Huang
  2012-01-18  8:38 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Huang @ 2012-01-18  8:13 UTC (permalink / raw)
  To: Xen-devel

Hi,

I see below code in cpu_schedule_up in xen-unstable hg repository
(xen/common/schedule.c).

    if ( idle_vcpu[cpu] == NULL )
        alloc_vcpu(idle_vcpu[0]->domain, cpu, cpu);
    if ( idle_vcpu[cpu] == NULL )
        return -ENOMEM;

Seems it's a bug? Should be like this?

    if ( idle_vcpu[cpu] == NULL )
        idle_vcpu[cpu] = alloc_vcpu(idle_vcpu[0]->domain, cpu, cpu);
    if ( idle_vcpu[cpu] == NULL )
        return -ENOMEM;


-cody

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-18 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18  8:13 [question] bug in cpu_schedule_up? Kai Huang
2012-01-18  8:38 ` Ian Campbell
     [not found]   ` <CANqQZNFL9=8wFBc2Cutrd2nwpk0Wk1EupqGQE6RU9a8aWzf0PA@mail.gmail.com>
2012-01-18 12:10     ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).