All of lore.kernel.org
 help / color / mirror / Atom feed
* what the meaning of the per cpu variable cpu_core_mask and cpu_sibling_mask?
@ 2013-03-21  9:53 Demon King
  2013-03-21 12:12 ` George Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Demon King @ 2013-03-21  9:53 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 815 bytes --]

I am a new comer of xen-devel. When I read the source code of
sched_credit.c. I was confused by such codes below:

if ( cpumask_test_cpu(cpu, per_cpu(cpu_core_mask, nxt)) )
        {
            /* We're on the same socket, so check the busy-ness of threads.
             * Migrate if # of idlers is less at all */
            ASSERT( cpumask_test_cpu(nxt, per_cpu(cpu_core_mask, cpu)) );
            migrate_factor = 1;
            cpumask_and(&cpu_idlers, &idlers, per_cpu(cpu_sibling_mask,
cpu));
            cpumask_and(&nxt_idlers, &idlers, per_cpu(cpu_sibling_mask,
nxt));
        }

I don't know much about xen or linux. So I get confused in the per cpu
variable: cpu_core_mask and cpu_sibling_mask
Is anyone willing to tell me? Thank you! And may I ask you where to get
answers about this kind of question?

[-- Attachment #1.2: Type: text/html, Size: 1019 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

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

end of thread, other threads:[~2013-03-23  3:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-21  9:53 what the meaning of the per cpu variable cpu_core_mask and cpu_sibling_mask? Demon King
2013-03-21 12:12 ` George Dunlap
2013-03-21 13:49   ` Demon King
2013-03-21 14:26     ` George Dunlap
2013-03-23  3:17     ` Dario Faggioli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.