Re: [v3 PATCH 2/8] RISC-V: Move cpuid to hartid mapping to SMP.

2019-02-08 Thread Atish Patra
On 2/8/19 1:03 AM, Christoph Hellwig wrote: On Thu, Feb 07, 2019 at 05:51:15PM -0800, Atish Patra wrote: Currently, logical CPU id to physical hartid mapping is defined for both smp and non-smp configurations. This is not required as we need this only for smp configuration. The mapping function

Re: [v3 PATCH 2/8] RISC-V: Move cpuid to hartid mapping to SMP.

2019-02-08 Thread Christoph Hellwig
On Thu, Feb 07, 2019 at 05:51:15PM -0800, Atish Patra wrote: > Currently, logical CPU id to physical hartid mapping is > defined for both smp and non-smp configurations. This > is not required as we need this only for smp configuration. > The mapping function can define directly boot_cpu_hartid > f

[v3 PATCH 2/8] RISC-V: Move cpuid to hartid mapping to SMP.

2019-02-07 Thread Atish Patra
Currently, logical CPU id to physical hartid mapping is defined for both smp and non-smp configurations. This is not required as we need this only for smp configuration. The mapping function can define directly boot_cpu_hartid for non-smp use case. The reverse mapping function i.e. hartid to cpuid