[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] sched: credit2: use boot CPU info for CPU #0
>>> On 22.08.14 at 19:15, <dario.faggioli@xxxxxxxxxx> wrote: > - /* Figure out which runqueue to put it in */ > - /* NB: cpu 0 doesn't get a STARTING callback, so we hard-code it to > runqueue 0. */ > + /* cpu 0 doesn't get a STARTING callback, so use boot CPU data for it */ > if ( cpu == 0 ) > - rqi = 0; > + rqi = boot_cpu_to_socket(); A change like this should also convert the "cpu == 0" condition to something guaranteeing this is the boot CPU (both for the [unlikely] case of the boot CPU being other than CPU 0 and for the [more likely] case of CPU 0 having got brought down and then being brought back up again. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |