Re: [PATCH v3] Add ARM cpu topology definition

2011-06-30 Thread Vincent Guittot
On 30 June 2011 12:34, Russell King - ARM Linux wrote: > On Fri, Jun 24, 2011 at 08:38:44PM +0200, Vincent Guittot wrote: >> +     printk(KERN_INFO "cpu %u : thread %d cpu %d, socket %d, mpidr %x\n", >> +             cpuid, cpu_topology[cpuid].thread_id, >> +             cpu_topology[cpuid].core_i

Re: [PATCH v3] Add ARM cpu topology definition

2011-06-30 Thread Russell King - ARM Linux
On Fri, Jun 24, 2011 at 08:38:44PM +0200, Vincent Guittot wrote: > + printk(KERN_INFO "cpu %u : thread %d cpu %d, socket %d, mpidr %x\n", > + cpuid, cpu_topology[cpuid].thread_id, > + cpu_topology[cpuid].core_id, > + cpu_topology[cpuid].socket_id, mpidr); > +

[PATCH v3] Add ARM cpu topology definition

2011-06-24 Thread Vincent Guittot
The affinity between ARM processors is defined in the MPIDR register. We can identify which processors are in the same cluster, and which ones have performance interdependency. We can define the cpu topology of ARM platform, that is then used by sched_mc and sched_smt. The default state of sched_m