# \[PATCHv5 0/3\] enable nr\_cpus for powerpc

- From: Pingfan Liu \<hidden\>
- Date: 2018-03-15 04:42:05 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2018/03/9502605
- Thread: https://ratatoskr.run/linuxppc-dev/2018/03/9502605/t.md

```text
This topic has a very long history. It comes from Mahesh Salgaonkar [ref]
For v3: https://patchwork.ozlabs.org/patch/834860/
I hope we can acquire it for "kexec -p" soon.

V4->V5:
  improve the [1/3] implementation based on Benjamin's suggestion.

Mahesh Salgaonkar (1):
  ppc64 boot: Wait for boot cpu to show up if nr_cpus limit is about to
    hit.

Pingfan Liu (2):
  powerpc, cpu: partially unbind the mapping between cpu logical id and 
       its seq in dt
  powerpc, cpu: handling the special case when boot_cpuid greater than
    nr_cpus

 arch/powerpc/include/asm/paca.h    |  3 +++
 arch/powerpc/include/asm/smp.h     |  2 ++
 arch/powerpc/kernel/paca.c         | 19 ++++++++++++++-----
 arch/powerpc/kernel/prom.c         | 27 ++++++++++++++++-----------
 arch/powerpc/kernel/setup-common.c | 35 ++++++++++++++++++++++++++++++++---
 5 files changed, 67 insertions(+), 19 deletions(-)

-- 
2.7.4
```
