[PATCH] arc: use hardware ARCNUM in smp_processor_id()

2016-12-07 Thread Alexey Brodkin
We used to think that ARC cores in SMP SoC start consequentially, i.e. core0 -> core1 -> core2 -> core4. Moreover we treat core0 as a master core which does some low-level initialization before allowing other cores to start doing real stuff. In that case everything works as expected - smp_process

[PATCH] arc: Allow selection of master core

2016-12-07 Thread Alexey Brodkin
We used to think that core0 is always so-called master-core which is executed before all other cores and does some preparation before allowing other cores to start or continue execution. But in some cases we may want another core to be that master or we may only run Linux on subset of cores in SMP

Re: [PATCH] arc: use hardware ARCNUM in smp_processor_id()

2016-12-07 Thread Vineet Gupta
+CC PeterZ, Andy On 12/07/2016 07:36 AM, Alexey Brodkin wrote: > We used to think that ARC cores in SMP SoC start > consequentially, i.e. core0 -> core1 -> core2 -> core4. > > Moreover we treat core0 as a master core which does some > low-level initialization before allowing other cores to > start

Re: [PATCH] arc: use hardware ARCNUM in smp_processor_id()

2016-12-07 Thread Vineet Gupta
On 12/07/2016 07:36 AM, Alexey Brodkin wrote: > We used to think that ARC cores in SMP SoC start > consequentially, i.e. core0 -> core1 -> core2 -> core4. > > Moreover we treat core0 as a master core which does some > low-level initialization before allowing other cores to > start doing real stuff.